mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
ae3d4af370
* Redux example * Reviews implemented
28 lines
616 B
JavaScript
28 lines
616 B
JavaScript
import React from 'react';
|
|
import { StyleSheet, View, StatusBar } from 'react-native';
|
|
import { Provider } from 'react-redux';
|
|
import configureStore from './store';
|
|
import AddTodo from './components/AddTodo';
|
|
import TodoList from './components/TodoList';
|
|
|
|
const store = configureStore();
|
|
|
|
export default function App() {
|
|
return (
|
|
<Provider store={store}>
|
|
<View style={styles.container}>
|
|
<StatusBar barStyle="dark-content" />
|
|
<AddTodo />
|
|
<TodoList />
|
|
</View>
|
|
</Provider>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
paddingTop: 32,
|
|
},
|
|
});
|