App.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow
  7. */
  8. import React, {Component} from 'react';
  9. import {Platform, StyleSheet,View} from 'react-native';
  10. import CodePushPage from './units/components/pages/CodePushPage.js'
  11. const instructions = Platform.select({
  12. ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
  13. android:
  14. 'Double tap R on your keyboard to reload,\n' +
  15. 'Shake or press menu button for dev menu',
  16. });
  17. export default class App extends Component{
  18. render() {
  19. return (
  20. <View style={styles.container}>
  21. <CodePushPage />
  22. </View>
  23. );
  24. }
  25. }
  26. const styles = StyleSheet.create({
  27. container: {
  28. flex: 1,
  29. justifyContent: 'center',
  30. backgroundColor: '#F5FCFF',
  31. },
  32. welcome: {
  33. fontSize: 20,
  34. textAlign: 'center',
  35. margin: 10,
  36. },
  37. instructions: {
  38. textAlign: 'center',
  39. color: '#333333',
  40. marginBottom: 5,
  41. },
  42. navBar_leftButton:{
  43. padding: 8,
  44. paddingLeft:12,
  45. },
  46. });