Skip to content

Commit

Permalink
fix: rn
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Aug 2, 2017
1 parent 6b91cfb commit c12a375
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ online example: http://react-component.github.io/m-picker/
## react-native

```
./node_modules/rc-tools run react-native-init
npm run rn-init
npm run watch-tsc
react-native start
react-native run-ios
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"test": "rc-test run test",
"chrome-test": "rc-test run chrome-test",
"coverage": "rc-test run coverage",
"rn-start": "node node_modules/react-native/local-cli/cli.js start"
"rn-start": "node node_modules/react-native/local-cli/cli.js start",
"rn-init": "rc-tools run react-native-init"
},
"dependencies": {
"babel-runtime": "6.x",
Expand All @@ -57,8 +58,9 @@
},
"devDependencies": {
"@types/mocha": "~2.2.32",
"@types/react": "^15.0.27",
"@types/react-dom": "^15.5.0",
"@types/react": "^16.0.0",

This comment has been minimized.

Copy link
@warmhug

warmhug May 7, 2018

Collaborator

@types/react 写了 16 ,但下边 "react": "15.5.x", 是这个没有问题吗?

This comment has been minimized.

Copy link
@warmhug

warmhug May 7, 2018

Collaborator

This comment has been minimized.

Copy link
@silentcloud

silentcloud May 7, 2018

Member

应该是有问题的,这样就会造成上午 @warmhug 发给我的那个报错问题

This comment has been minimized.

Copy link
@paranoidjk

paranoidjk May 8, 2018

Author Member

我印象中@types/react相关与react本身的版本号本来就不是match的,看下definite type 里面代码或文档吧

"@types/react-dom": "^15.5.1",
"@types/react-native": "^0.46.9",
"array-tree-filter": "1.x",
"expect.js": "0.3.x",
"fastclick": "^1.0.6",
Expand All @@ -67,8 +69,8 @@
"rc-tools": "6.x",
"react": "15.5.x",
"react-dom": "15.5.x",
"react-native": "0.41.x",
"react-native-index-page": "~0.2.0"
"react-native": "~0.42.0",
"react-native-index-page": "~0.2.1"
},
"typings": "./lib/index.d.ts",
"pre-commit": [
Expand Down
2 changes: 1 addition & 1 deletion src/PopupStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const textStyle = {
textAlign: 'center',
};

const styles = StyleSheet.create({
const styles = StyleSheet.create<any>({
modal: {
flexDirection: 'column',
justifyContent: 'flex-end',
Expand Down

0 comments on commit c12a375

Please sign in to comment.