Skip to content

Instantly share code, notes, and snippets.

@Hesamedin
Created August 9, 2017 18:34
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 Hesamedin/2f242a7611a08837ae00355f3b1529f6 to your computer and use it in GitHub Desktop.
Save Hesamedin/2f242a7611a08837ae00355f3b1529f6 to your computer and use it in GitHub Desktop.
React-native project setup
import React, { Component } from 'react';
import { Text, View } from "react-native";
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from './reducers/'
class App extends Component {
render() {
return (
<Provider store={createStore(reducer)}>
<View>
<Text>
Hello
</Text>
</View>
</Provider>
);
}
}
export default App;
import { AppRegistry } from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('manager', () => App);
import { combineReducers } from 'redux';
export default combineReducers({
banana: () => []
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment