Skip to content

Commit

Permalink
Match supported components to what is exported from the latest versio…
Browse files Browse the repository at this point in the history
…n of React Native (0.61.5) (#1750)

* Fixed native typings

* Updated monorepo package.json

* Update changeset

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
Zn4rK and Andarist committed Feb 27, 2020
1 parent 4aacba5 commit 11fc27f
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 312 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-cheetahs-march.md
@@ -0,0 +1,5 @@
---
'@emotion/native': patch
---

Match supported components to what is exported from the latest version of React Native (0.61.5).
2 changes: 1 addition & 1 deletion package.json
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
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
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
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

0 comments on commit 11fc27f

Please sign in to comment.