Creating Some Helpers
import {
Animated,
NavigationExperimental,
Easing,
} from 'react-native';
import clrs from '../../utils/clrs';
import React, { PropTypes } from 'react';
import * as actions from '../../actions';
const { Header: NavigationHeader } = NavigationExperimental;State and Dispatch
export function mapStateToProps(state) {
return {
navigationState: state.navigator,
pokemon: state.pokemon.get('all'),
activePokemon: state.pokemon.get('active'),
};
}
export function mapDispatchToProps(state) {
return {
goToPokemonDetail: artist => {
dispatch(actions.goToPokemonDetail(artist));
},
gotoPokedex: () => dispatch(actions.gotoPokedex()),
onNavigate: payload => dispatch(actions.onNavigate(payload)),
catchEmAll: () => dispatch(actions.catchEmAll()),
iChooseYou: url => dispatch(actions.iChooseYou(url)),
clearChoice: () => dispatch(actions.clearChoice()),
};
}Animations
Title and Header
Last updated
Was this helpful?