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
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLSchemes</key> | |
<array> | |
<string>fb451477895645216</string> | |
</array> | |
</dict> | |
</array> | |
<key>FacebookAppID</key> |
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 from 'react' | |
import { View, Text, Button } from 'react-native' | |
import { connect } from 'react-redux' | |
class DetailsScreen extends React.Component { | |
render() { | |
const { dummyReducer = {} } = this.props | |
const { text = ''} = dummyReducer | |
return ( | |
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> |
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 from 'react' | |
import { View, Text, Button } from 'react-native' | |
import { connect } from 'react-redux' | |
import { dummyAction } from '../actions/dummyAction' | |
class HomeScreen extends React.Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> | |
<Text>Home Screen</Text> |
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 { createAppContainer, createStackNavigator } from 'react-navigation' | |
import HomeScreen from './components/HomeScreen' | |
import DetailsScreen from './components/DetailsScreen' | |
const AppNavigator = createStackNavigator({ | |
Home: { | |
screen: HomeScreen, | |
}, | |
Details: { | |
screen: DetailsScreen, |
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 SET_TEXT from '../types/types' | |
const initialState = { | |
text: '', | |
} | |
const dummyReducer = (state = initialState, action = {}) => { | |
switch(action.type) { | |
case SET_TEXT: |
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 { SET_TEXT } from '../types/types' | |
export const dummyAction = (data) => { | |
return { | |
types: SET_TEXT, | |
payload: { | |
data | |
} | |
} | |
} |
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
export const SET_TEXT = 'SET_TEXT' |
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 from 'react' | |
import { Provider } from 'react-redux' | |
import Router from './Router' | |
import store from './store' | |
class App extends React.Component { | |
render() { | |
return ( | |
<Provider store={store}> |
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 { createStore, combineReducers, applyMiddleware } from 'redux' | |
import thunk from 'redux-thunk' | |
import dummyReducers from './reducers/dummyReducer' | |
const reducer = combineReducers ({ dummyReducers }) | |
const store = createStore( | |
reducer, | |
applyMiddleware(thunk) |
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 from 'react' | |
import { View, Text, Button } from 'react-native' | |
import { createAppContainer, createStackNavigator } from 'react-navigation' | |
class HomeScreen extends React.Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> | |
<Text>Home Screen</Text> | |
<Button |
NewerOlder