etn-ccis / blui-react-native-workflows

Re-usable Brightlayer UI workflows for React Native applications
6 stars 6 forks source link

App crash on click of change password #538

Open rajatporwal-eaton opened 1 month ago

rajatporwal-eaton commented 1 month ago

Describe the bug / expected behavior

We have recently upgraded BrightlayerHome App to support react-native 0.74 and after upgrading activity when we try to change password on both android and iOS. App is crashing on calling "useSecurityActions().showChangePassword"

What are the steps to reproduce?

  1. Launch App -> Go to Hamburger Menu -> Click on Account -> Change Password .

Screenshots / Screen recording

https://github.com/user-attachments/assets/91ab6613-1af9-443d-9a8d-094b9642ee34

Code snippet / Link to minimum reproduction example

useSecurityActions().showChangePassword

Your environment information

Versions - "react-native": "^0.74.5", "react": "18.2.0", "@brightlayer-ui/react-native-auth-workflow": "5.0.0", "react-native-gesture-handler": "^2.19.0",

Suggested fix

Anything else to add?

Error: NativeViewGestureHandler must be used as a descendant of GestureHandlerRootView.

manojleaton commented 1 month ago

@brightlayer-ui/react-native-auth-workflow: "5.0.0" version doesn't support react-native: "^0.74.5". Please downgrade the react-native version, try revert back to the version which was working. If you want to use "react-native": "^0.74.5", have to upgrade the @brightlayer-ui/react-native-auth-workflow to latest and please refer the migration guide.