Closed thib92 closed 4 years ago
As explained in the BackHandler docs, returning true is mandatory to avoid the default device behavior.
BackHandler
true
And as seen in this piece of code:
https://github.com/octopitus/rn-sliding-up-panel/blob/fb94487606374ac54580f6827be93a9774f5a165/SlidingUpPanel.js#L333-L335
The custom callback provided by the user must return a boolean too.
As explained in the
BackHandler
docs, returningtrue
is mandatory to avoid the default device behavior.And as seen in this piece of code:
https://github.com/octopitus/rn-sliding-up-panel/blob/fb94487606374ac54580f6827be93a9774f5a165/SlidingUpPanel.js#L333-L335
The custom callback provided by the user must return a boolean too.