Switched to react native

workbench
Jonas Franz 7 years ago committed by Gitea
parent 20c90cef07
commit 8bd999a439
  1. 4
      .babelrc
  2. 18
      App.js
  3. 6
      app.json
  4. 15
      package.json

@ -1,6 +1,6 @@
{
"presets": [
"babel-preset-expo"
"babel-preset-react-native-stage-0/decorator-support"
],
"env": {
"development": {
@ -9,4 +9,4 @@
]
}
}
}
}

@ -1,5 +1,4 @@
import {AppLoading, Font,} from 'expo';
import React, {Text} from "react";
import React from "react";
import App from "./Main";
export default class App1 extends React.Component {
@ -10,20 +9,7 @@ export default class App1 extends React.Component {
};
}
async componentWillMount() {
this.setState({isReady: false});
await Font.loadAsync({
Roboto: require("native-base/Fonts/Roboto.ttf"),
Roboto_medium: require("native-base/Fonts/Roboto_medium.ttf")
});
this.setState({isReady: true});
}
render() {
if (!this.state.isReady) {
return <AppLoading/>
}
return <App/>;
return <App />;
}
}

@ -17,5 +17,7 @@
"barStyle": "light-content",
"backgroundColor": "#334393"
}
}
}
},
"name": "Organizer",
"displayName": "Organizer"
}

@ -5,20 +5,19 @@
"devDependencies": {
"babel-core": "6.18.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react-native-stage-0": "^1.0.1",
"babel-preset-stage-0": "^6.24.1",
"expect.js": "~0.3.1",
"jest-expo": "~19.0.0",
"mocha": "~2.3.4",
"react-native-scripts": "1.1.0",
"react-test-renderer": "16.0.0-alpha.12",
"sinon": "1.17.3"
},
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"start": "react-native start",
"android": "react-native run-android",
"android-linux": "react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android",
"ios": "react-native run-ios",
"test": "node node_modules/jest/bin/jest.js --watch"
},
"jest": {
@ -29,10 +28,12 @@
"@exponent/vector-icons": "^4.0.0",
"babel": "^6.23.0",
"babel-cli": "^6.24.1",
"expo": "^19.0.0",
"native-base": "^2.3.1",
"querystring": "^0.2.0",
"react": "16.0.0-alpha.12",
"react-native": "^0.46.1",
"react-native-cli": "^2.0.1",
"react-native-vector-icons": "^4.3.0",
"react-navigation": "^1.0.0-beta.11",
"superagent": "3.5.2"
}

Loading…
Cancel
Save