react-native-interaction-provider
react-native-interaction-provider copied to clipboard
Handles inactivity for only the first screen that is loaded, not for the whole app
I'm wrapping Root StackNavigator (react-navigation) in InteractionProvider but It's working for only the first screen and not the rest, Can you post an example of what props we need to pass to the Root View in order to achieve the clicks in the whole screen. Also you example
render() {
const {
props,
you,
care,
about,
...rest
} = this.props;
return (
<View
{...rest} // `panHandlers` will be provided here
>
/* ... */
</View>
)
}
What are the rest props here and which panHandlers need to be provided here, can you throw some more light on it