Skip to content

Instantly share code, notes, and snippets.

@kumarks1122
Created January 15, 2019 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumarks1122/21fe4579e2aa2dc303f694511d8115ad to your computer and use it in GitHub Desktop.
Save kumarks1122/21fe4579e2aa2dc303f694511d8115ad to your computer and use it in GitHub Desktop.
React-Native and Redux Basics - Medium post
import React, { Component } from 'react';
import { Platform, View, StyleSheet, Text } from 'react-native';
import { Provider } from "react-redux";
import RootNavigatorContainer from './services/routes';
import store from './services/store';
class MainApp extends Component {
render() {
return (
<Provider store={store}>
<View style={styles.container}>
<RootNavigatorContainer />
</View>
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1
}
})
export default MainApp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment