PlustarContainer.js
709 Bytes
import React from 'react-native';
let {
Component
} = React;
import {connect} from 'react-redux/native';
import Plustar from '../components/plustar/Plustar';
class PlustarContainer extends Component {
render() {
return (
<Plustar {...this.props} />
)
}
}
function mapStateToProps(state) {
const { plustar } = state
return {
left: plustar.payload.left,
right: plustar.payload.right,
segmentIndex: plustar.payload.segmentIndex,
selectedIndex: plustar.payload.selectedIndex,
genderType: plustar.payload.genderType,
error: plustar.error,
}
}
export default connect(mapStateToProps)(PlustarContainer);