Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11] fixed native typings #1750

Merged
merged 3 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-cheetahs-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@emotion/native': patch
---

updating @types/react-native and react-native
Andarist marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"react-helmet": "^5.2.0",
"react-icons": "^2.2.7",
"react-live": "1.10.0",
"react-native": "^0.57.0",
"react-native": "^0.61.5",
"react-native-web": "0.9.6",
"react-primitives": "^0.7.0",
"react-router-dom": "^4.2.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"types": "types/index.d.ts",
"devDependencies": {
"@babel/core": "^7.7.2",
"@types/react-native": "^0.57.0",
"@types/react-native": "^0.61.10",
"dtslint": "^0.3.0",
"react": "^16.11.0",
"react-native": "^0.57.0"
"react-native": "^0.61.5"
},
"dependencies": {
"@emotion/primitives-core": "11.0.0-next.10"
Expand Down
4 changes: 1 addition & 3 deletions packages/native/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const css = createCss(reactNative.StyleSheet)

const components = [
'ActivityIndicator',
'ActivityIndicatorIOS',
'Button',
'DatePickerIOS',
'DrawerLayoutAndroid',
Expand Down Expand Up @@ -43,8 +42,7 @@ const components = [
'TouchableOpacity',
'TouchableWithoutFeedback',
'View',
'ViewPagerAndroid',
'WebView'
'ViewPagerAndroid'
]

export { css }
Expand Down
2 changes: 0 additions & 2 deletions packages/native/types/base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export type ReactNativeStyle = RN.ViewStyle | RN.TextStyle | RN.ImageStyle

export type ReactNativeComponentNames =
| 'ActivityIndicator'
| 'ActivityIndicatorIOS'
| 'Button'
| 'DatePickerIOS'
| 'DrawerLayoutAndroid'
Expand Down Expand Up @@ -53,7 +52,6 @@ export type ReactNativeComponentNames =
| 'TouchableWithoutFeedback'
| 'View'
| 'ViewPagerAndroid'
| 'WebView'

export type ReactNativeComponents = Pick<ReactNative, ReactNativeComponentNames>

Expand Down
Loading