-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
27 lines (24 loc) · 759 Bytes
/
App.tsx
File metadata and controls
27 lines (24 loc) · 759 Bytes
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
27
import React from "react";
import { createStore } from "redux";
import { reducer } from "./redux";
import { Provider } from "react-redux";
import { NativeRouter, Switch, Route } from "react-router-native";
import { Gallery, Puzzle } from "./containers";
import { ScreenOrientation } from "expo";
const store = createStore(reducer);
ScreenOrientation.allowAsync(ScreenOrientation.Orientation.ALL_BUT_UPSIDE_DOWN);
class App extends React.Component {
render() {
return (
<Provider store={store}>
<NativeRouter>
<Switch>
<Route exact path="/" component={Gallery} />
<Route path="/puzzle" component={Puzzle} />
</Switch>
</NativeRouter>
</Provider>
);
}
}
export default App;