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
license: gpl-3.0 |
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
license: mit |
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 { connect } from "react-redux"; | |
import { bindActionCreators } from "redux"; | |
import Explore from "../components/explore"; //imports the feature's entry component. | |
import { navigateToLogin } from "navigation/actions"; //imports navigation action to be used by feature | |
import { getExploreData } from "../actions"; // imports action creators as needed. | |
import { getCategoryListing } from "../selectors"; // imports selectors as needed. | |
const mapStateToProps = state => ({ | |
exploreData: state.exploreData, |
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 { NavigationActions } from "react-navigation"; | |
import * as screenNames from "../screen_names"; | |
export const navigateToLogin = () => | |
NavigationActions.navigate({ | |
routeName: screenNames.LOGIN | |
}); | |
export const navigateToSplash = () => |
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
//imports the navigators we've defined for our app | |
import ApplicationNavigator from "../navigators"; | |
//used in connecting the app's navigation data to redux | |
import { addNavigationHelpers } from "react-navigation"; | |
//takes the navigation slice of state and maps it to a prop, so we can used it around the application. | |
const mapStateToProps = state => ({ | |
navigation: state.navigationData | |
}); |
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"; | |
import eventData from "features/events/reducers"; | |
import exploreData from "features/explore/reducers"; | |
import navigationData from "navigation/reducers"; | |
export default combineReducers({ | |
eventData, | |
exploreData, | |
navigationData | |
}); |
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 default class LargeApp extends Component { | |
render() { | |
return ( | |
<Provider store={myStore}> | |
<Layout> | |
<ApplicationNavigator /> | |
</Layout> | |
</Provider> | |
); | |
} |