useDeveloperOverride
The useDeveloperOverride
hook let's add an easter egg in the app to enable RNFR.
The default behaviour is going to expect the user to tap on an element 10 times and the perference expires after 30 minutes of activation.
Example:
#
Options#
timesSometimes we want to change the amount of times a user would have to tap an element to enable RNFR. We can use the times
prop to customize it:
#
numDaysToExpireSometimes we want to change how long to remember user preference. We can use the numDaysToExpire
prop to customize it:
Note: In order to set the preference to never expire, pass 999
as numDaysToExpire
value.