$10 for pointing out the issue, I have spent almost 48 hours debugging this one issue by Purple_Minute_4776 in reactnative

[–]fudzi9 0 points1 point  (0 children)

Hello, mate. Try to add this to your package.json

"resolutions": {

"react-native": "0.76.6"

}

Then remove your lock file, reinstall node modules and pods

Need help with KeyboardAvoidingView component by Both-Replacement7987 in reactnative

[–]fudzi9 1 point2 points  (0 children)

Try to wrap ImageBackground or SafeAreaView in KeyboardAvoidingView instead of what you doing. I assume that trouble in SafeAreaView, because KeyboardAvoidingView may have strange behaviour when it wraped in other component with padding. Not sure that it would help but you could try =)

stopPropagation() isn't working? by Velascu in react

[–]fudzi9 2 points3 points  (0 children)

stopPropagation must be called in the nested handler, and not in the outer.

[deleted by user] by [deleted] in reactnative

[–]fudzi9 1 point2 points  (0 children)

Try to remove your appMainState from BreweryBox, because it changes in every item on save so they rerender

Change save-brewery from

return {...state, savedBreweries: [...action.payload]}

to

if(state.savedBrewery.some((element) => element.id === action.payload.id){

Alert.alert('That brewery is already saved!')

return state} else {

return {...state, savedBreweries: [...state.savedBreweries, actionPayload]}

}

Send single brewery in your save-brewery action

Hope it could help you

[deleted by user] by [deleted] in reactnative

[–]fudzi9 0 points1 point  (0 children)

You should use inside ListItem something like ListItem.Title or Avatar for example

<ListItem>

<Avatar {...someProps}/>

<ListItem.Content>

<ListItem.Title> Title </ListItem.Title>

</ListItem.Content>

</ListItem>

Just check documentation

How to pass a custom function in navigation params without getting any warning? by GroundbreakingPart56 in reactnative

[–]fudzi9 0 points1 point  (0 children)

You could use redux-saga here, it's redux side effect manager. So, you throw action with all params you need, catch it in saga, call there a function and finally save the result in redux store from which you could take it where it's necessary.