forked from creative-media-berlin/cm.bp.htw-mapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (30 loc) · 979 Bytes
/
index.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
36
37
import React, { Component } from 'react';
import { AppRegistry, View } from 'react-native';
import { createStore } from 'redux';
import reducer from './app/reducers';
import { Provider } from 'react-redux';
import { SplashScreen } from './app/components/SplashScreen';
const store = createStore(reducer);
// Action Button from react-native-material-ui supports passing a custom element,
// but it doesn't allow it in its prop types.
// eslint-disable-next-line no-console
console.ignoredYellowBox = [
'Warning: Failed prop type: Invalid prop `icon` of type `object` supplied to `ActionButton`',
];
class HTWMapper extends Component {
constructor() {
super();
this.state = store.getState();
}
render() {
return (
<Provider store={store}>
<View style={{ position: 'relative' }}>
<SplashScreen />
</View>
</Provider>
);
}
}
export default HTWMapper;
AppRegistry.registerComponent('HTWMapper', () => HTWMapper);