react-native-interaction-provider icon indicating copy to clipboard operation
react-native-interaction-provider copied to clipboard

Handles inactivity for only the first screen that is loaded, not for the whole app

Open AndroConsis opened this issue 7 years ago • 0 comments

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

AndroConsis avatar Jul 17 '18 12:07 AndroConsis