const mapStateToProps = (state, props) => { let arrayID = props.navigation.getParam('selectedID'); return { data: state.dataRecuder.find((data) => data.id === arrayID) } }; export default connect(mapStateToProps)(DataShow);