-
Notifications
You must be signed in to change notification settings - Fork 6
/
App.js
35 lines (32 loc) · 878 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
27
28
29
30
31
32
33
34
35
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
Button,
View,
TextInput
} from 'react-native';
import uuidV4 from 'uuid/v4'
import { Subscribe, Provider } from 'unstated'
import { BookContainer } from './BookContainer'
import { CounterContainer } from './CounterContainer'
import { LocationsContainer } from './LocationsContainer'
import AppContainer from './AppContainer'
export default class App extends Component {
render() {
return (
<Provider>
<Subscribe to={[BookContainer, CounterContainer, LocationsContainer]}>
{(bookStore, counterStore, locationsStore) => (
<AppContainer
bookStore={bookStore}
CounterContainer={CounterContainer}
locationsStore={locationsStore}
/>
)}
</Subscribe>
</Provider>
);
}
}