-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
26 lines (24 loc) · 881 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React, { Component } from 'react';
import { View } from 'react-native';
import { Provider } from 'react-redux';
import reducerStore from './reducers';
import LoginForm from './components/LoginForm';
import HomeList from './components/HomeList';
import { Router, Stack, Scene } from 'react-native-router-flux';
class App extends Component {
render() {
return (
<Provider store={reducerStore}>
<View style={{ flex: 1 }}>
<Router>
<Stack key="root">
<Scene key="login" component={LoginForm} title="Instagram Clone"/>
<Scene key="showList" component={HomeList} title="Instagram List"/>
</Stack>
</Router>
</View>
</Provider>
);
}
}
export default App;