You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android (iOS is OK), ratio can be NaN or Infinity, causing exception:
[Invariant Violation: [3,"RCTView",{"opacity":"<<NaN>>"}] is not usable as a native method argument]
[Invariant Violation: [3,"RCTView",{"opacity":"<<Infinity>>"}] is not usable as a native method argument]
Fix:
tweenHandler: (ratio: number)=>{constratioNumber=isFinite(ratio) ? ratio : 0return{mainOverlay: {opacity: ratioNumber/2}}}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
native-base: 2.15.2
Drawer source code:
https://github.com/GeekyAnts/NativeBase/blob/de81ef2fb8bd056f85e7bbc78d957f3d5ab43337/src/basic/Drawer/index.js
On Android (iOS is OK), ratio can be
NaN
orInfinity
, causing exception:Fix:
The example of Drawer should be updated to use React Hook
useState
andopen
property ofreact-native-drawer
:https://docs.nativebase.io/Components.html#Drawer
https://github.com/root-two/react-native-drawer hasn't been updated for a long time. And its README says:
So probably native-base should switch to those libraries?
The text was updated successfully, but these errors were encountered: