Skip to content

Commit fa344d2

Browse files
committed
working example and test script
1 parent ad88920 commit fa344d2

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

example/package.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "Example",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"start": "node node_modules/react-native/local-cli/cli.js start",
7+
"test": "jest",
8+
"postinstall": "rm -rf node_modules/\\@textile/react-native-sdk/example"
9+
},
10+
"dependencies": {
11+
"@textile/react-native-sdk": "file:..",
12+
"prop-types": "^15.6.2",
13+
"react": "^16.6.3",
14+
"react-native": "^0.57.2"
15+
},
16+
"devDependencies": {
17+
"babel-jest": "23.6.0",
18+
"jest": "23.6.0",
19+
"metro-react-native-babel-preset": "0.50.0",
20+
"react-test-renderer": "16.6.1"
21+
},
22+
"jest": {
23+
"preset": "react-native"
24+
}
25+
}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"scripts": {
1414
"build": "rm -rf dist/ && tsc",
1515
"lint": "tslint -c tslint.json --project .",
16-
"test": "jest"
16+
"test": "jest",
17+
"ios-example": "yarn; yarn build; yarn install --production; cd example; yarn upgrade @textile/react-native-sdk; yarn; react-native run-ios"
1718
},
1819
"keywords": [
1920
"react-native"
@@ -39,8 +40,8 @@
3940
"@types/react-redux": "^6.0.9",
4041
"@types/react-test-renderer": "^16.0.3",
4142
"@types/uuid": "^3.4.4",
42-
"babel-jest": "23.6.0",
4343
"babel-eslint": "^8.1.1",
44+
"babel-jest": "23.6.0",
4445
"enzyme": "^3.7.0",
4546
"enzyme-adapter-react-16": "^1.6.0",
4647
"jest": "^23.6.0",

0 commit comments

Comments
 (0)