From 5c216d59cea4e6870bdc4094ce69c47fd98ea627 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sun, 24 Jul 2022 07:54:34 -0500 Subject: [PATCH] redux decorator on splash component --- squarenotsquare/components/Splash.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/squarenotsquare/components/Splash.js b/squarenotsquare/components/Splash.js index bfd2a38..b887f6f 100644 --- a/squarenotsquare/components/Splash.js +++ b/squarenotsquare/components/Splash.js @@ -1,5 +1,7 @@ import { Component } from "react"; import { View } from "react-native"; +import { connect, Connect } from "react-redux"; +import { bindActionCreators } from "redux"; class Splash extends Component { constructor(props){ @@ -16,4 +18,17 @@ class Splash extends Component { ); }; -} \ No newline at end of file +} + +function mapStateToProps(){ + +} + +function mapDispatchToProps(){ + let actions = { + //...someActionsGroup + } + return bindActionCreators(actions, dispatch); +} + +export default connect(mapStateToProps, mapDispatchToProps)(Splash); \ No newline at end of file