Skip to content

Commit 83f40e0

Browse files
committed
Convert app to create-react-native-app
1 parent 163e5c6 commit 83f40e0

File tree

6 files changed

+2580
-123
lines changed

6 files changed

+2580
-123
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"presets": ["babel-preset-exponent"],
2+
"presets": ["babel-preset-expo"],
33
"env": {
44
"development": {
55
"plugins": ["transform-react-jsx-source"]

main.js renamed to App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Exponent from 'exponent';
21
import { StackNavigator } from 'react-navigation';
32
import Home from './src/components/Home';
43
import NanologShow from './src/components/NanologShow';
@@ -8,4 +7,4 @@ const App = StackNavigator({
87
NanologShow: { screen: NanologShow },
98
});
109

11-
Exponent.registerRootComponent(App);
10+
export default App;

app.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"expo": {
3+
"sdkVersion": "15.0.0"
4+
}
5+
}

exp.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

package.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
{
22
"name": "nanolog",
33
"version": "0.0.0",
4-
"description": "Hello Exponent!",
5-
"author": null,
64
"private": true,
7-
"main": "main.js",
5+
"devDependencies": {
6+
"jest-expo": "^0.3.0",
7+
"react-native-scripts": "0.0.25",
8+
"react-test-renderer": "~15.4.1"
9+
},
10+
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11+
"scripts": {
12+
"start": "react-native-scripts start",
13+
"eject": "react-native-scripts eject",
14+
"android": "react-native-scripts android",
15+
"ios": "react-native-scripts ios",
16+
"test": "node node_modules/jest/bin/jest.js --watch"
17+
},
18+
"jest": {
19+
"preset": "jest-expo"
20+
},
821
"dependencies": {
9-
"@exponent/vector-icons": "~4.0.0",
10-
"exponent": "^14.0.0",
22+
"expo": "^15.1.0",
1123
"react": "~15.4.0",
12-
"react-native": "https://github.com/exponent/react-native/archive/sdk-14.0.0.tar.gz",
24+
"react-native": "0.42.3",
1325
"react-native-keyboard-aware-scroll-view": "^0.2.7",
1426
"react-navigation": "^1.0.0-beta.6"
1527
}

0 commit comments

Comments
 (0)