From 017ec11346302821934f84cb7b4e911996d24a58 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sat, 23 Jul 2022 13:00:52 -0500 Subject: [PATCH] Square stack component --- squarenotsquare/navigation/SquareStack.js | 63 +++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/squarenotsquare/navigation/SquareStack.js b/squarenotsquare/navigation/SquareStack.js index e69de29..78a83da 100644 --- a/squarenotsquare/navigation/SquareStack.js +++ b/squarenotsquare/navigation/SquareStack.js @@ -0,0 +1,63 @@ +import React, {Component} from 'react'; +import {NavigationContainer} from '@react-navigation/native'; +import {createStackNavigator} from '@react-navigation/stack'; +import {connect} from 'react-redux'; +import {squareRef} from 'SquareNav'; + +import Home from '../components/Home'; +import Game from '../components/Game'; +import HighScore from '../components/HighScore'; +import Settings from '../components/Settings'; +import Splash from '../components/Splash'; + +const SquareNav = createStackNavigator(); + +class SquareStack extends Component { + render() { + let noHeader = {headerShown: false}; + + return ( + + + + + + + + + + ) + } +} + +function mapStateToProps(state) { + return { + Navigation: state.Navigation + } +} + +function mapDispatchToProps(dispatch) { + return {dispatch: dispatch}; +} + +export default connect(mapStateToProps, mapDispatchToProps)(SquareStack) \ No newline at end of file