NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Actionsheet is not able to access it's parent context.

Open sanna231 opened this issue 3 years ago • 1 comments

Description

ActionSheet component with React.Context. The context consumer doesn't appear to have the latest state.

CodeSandbox/Snack link

https://snack.expo.dev/@joeyjiron06/2a8d0e

Steps to reproduce

No response

NativeBase Version

3.4.8

Platform

  • [X] Android
  • [X] CRA
  • [X] Expo
  • [X] iOS
  • [X] Next

Other Platform

No response

Additional Information

No response

sanna231 avatar Jul 25 '22 07:07 sanna231

Hey @sanna231, Thanks for reporting the issue, We'll look into it. For now, the workaround is that you have to wrap NativeBaseProvider with your ContextProvider.

ankit-tailor avatar Aug 08 '22 09:08 ankit-tailor