UNPKG

media_player_wrapper

Version:
33 lines (24 loc) 902 B
import React, { Component } from "react"; import { View, Platform } from "react-native"; import { Scene, Router } from "react-native-router-flux"; import {connect, Provider} from 'react-redux'; import {bindActionCreators} from 'redux'; import configureStore from './store/configureStore'; const RouterWithRedux = connect()(Router); const store = configureStore(); import MainScreen from "./Main"; export default class App extends Component { componentWillMount() { global.firstRun = true; } render() { // Setup provider and the scenes and setting the initial scene to MainScreen return ( <Provider store={store}> <RouterWithRedux style={{backgroundColor: 'white'}}> <Scene key='MainScreen' component={MainScreen} title='MainScreen' sceneStyle={{backgroundColor: 'white'}} initial hideNavBar /> </RouterWithRedux> </Provider> ); } }