App.tsx 681 B

1234567891011121314151617181920212223242526272829303132
  1. import { StatusBar } from "expo-status-bar";
  2. import { StyleSheet, Text, View } from "react-native";
  3. import { Provider } from "react-redux";
  4. import Counter from "./component/counter";
  5. import store from "./store";
  6. const styles = StyleSheet.create({
  7. container: {
  8. flex: 1,
  9. backgroundColor: "#fff",
  10. alignItems: "center",
  11. justifyContent: "center",
  12. },
  13. });
  14. function App() {
  15. return (
  16. <View style={styles.container}>
  17. <Text>Open up App.tsx to start working on your app!</Text>
  18. <StatusBar style="auto" />
  19. <Counter />
  20. </View>
  21. );
  22. }
  23. export default function Root() {
  24. return (
  25. <Provider store={store}>
  26. <App />
  27. </Provider>
  28. );
  29. }