File tree Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-scripts" ,
3
- "version" : " 1.11.1 " ,
3
+ "version" : " 1.2.0-alpha.2 " ,
4
4
"description" : " Configuration and scripts for Create React Native App." ,
5
5
"license" : " BSD-3-Clause" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change
1
+ import Expo from 'expo' ;
2
+ import App from '../../../../src/App' ;
3
+ import React , { Component } from 'react' ;
4
+ import { View } from 'react-native' ;
5
+
6
+ if ( process . env . NODE_ENV === 'development' ) {
7
+ Expo . KeepAwake . activate ( ) ;
8
+ }
9
+
10
+ Expo . registerRootComponent ( App ) ;
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ https://github.com/npm/npm/issues/16991
101
101
} ;
102
102
103
103
if ( arg [ 'with-web-support' ] ) {
104
+ appPackage . main = './node_modules/react-native-scripts/build/bin/crna-entry-web.js' ;
104
105
Object . assign ( appPackage . scripts , {
105
106
web : 'webpack-dev-server -d --config ./webpack.config.js --inline --hot --colors --content-base public/' ,
106
107
build : 'NODE_ENV=production webpack -p --config ./webpack.config.js' ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default class App extends React.Component {
5
5
render ( ) {
6
6
return (
7
7
< View style = { styles . container } >
8
- < Text > Open up App.js to start working on your app!</ Text >
8
+ < Text > Open up src/ App.js to start working on your app!</ Text >
9
9
< Text > Changes you make will automatically reload.</ Text >
10
10
< Text > Shake your phone to open the developer menu.</ Text >
11
11
</ View >
You can’t perform that action at this time.
0 commit comments