Created
August 9, 2017 18:34
-
-
Save Hesamedin/2f242a7611a08837ae00355f3b1529f6 to your computer and use it in GitHub Desktop.
React-native project setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppRegistry } from 'react-native'; | |
import App from './src/App'; | |
AppRegistry.registerComponent('manager', () => App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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