You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.5KB

  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow strict-local
  7. */
  8. import React from 'react';
  9. import {
  10. SafeAreaView,
  11. StyleSheet,
  12. ScrollView,
  13. View,
  14. Text,
  15. StatusBar,
  16. } from 'react-native';
  17. import {
  18. Header,
  19. LearnMoreLinks,
  20. Colors,
  21. DebugInstructions,
  22. ReloadInstructions,
  23. } from 'react-native/Libraries/NewAppScreen';
  24. import {TeaNavigator, TopView} from 'teaset';
  25. import {Provider} from 'react-redux';
  26. import MainPage from './src/views/MainPage';
  27. import configureStore from './src/store/index';
  28. const store = configureStore();
  29. const App: () => React$Node = () => {
  30. return (
  31. <>
  32. <Provider store={store}>
  33. <TopView>
  34. <TeaNavigator rootView={
  35. <MainPage />
  36. }/>
  37. </TopView>
  38. </Provider>
  39. </>
  40. );
  41. };
  42. const styles = StyleSheet.create({
  43. scrollView: {
  44. backgroundColor: Colors.lighter,
  45. },
  46. engine: {
  47. position: 'absolute',
  48. right: 0,
  49. },
  50. body: {
  51. backgroundColor: Colors.white,
  52. },
  53. sectionContainer: {
  54. marginTop: 32,
  55. paddingHorizontal: 24,
  56. },
  57. sectionTitle: {
  58. fontSize: 24,
  59. fontWeight: '600',
  60. color: Colors.black,
  61. },
  62. sectionDescription: {
  63. marginTop: 8,
  64. fontSize: 18,
  65. fontWeight: '400',
  66. color: Colors.dark,
  67. },
  68. highlight: {
  69. fontWeight: '700',
  70. },
  71. footer: {
  72. color: Colors.dark,
  73. fontSize: 12,
  74. fontWeight: '600',
  75. padding: 4,
  76. paddingRight: 12,
  77. textAlign: 'right',
  78. },
  79. });
  80. export default App;