react-native-gesture-handler#PanGestureHandlerProperties TypeScript Examples

The following examples show how to use react-native-gesture-handler#PanGestureHandlerProperties. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GestureHandlerNative.tsx    From nlw2-proffy with MIT License 6 votes vote down vote up
export function PanGestureHandler(props: PanGestureHandlerProperties) {
  const gestureRef = React.useRef<PanGestureHandlerNative>(null);

  return (
    <GestureHandlerRefContext.Provider value={gestureRef}>
      <PanGestureHandlerNative {...props} ref={gestureRef} />
    </GestureHandlerRefContext.Provider>
  );
}
Example #2
Source File: GestureHandler.d.ts    From nlw2-proffy with MIT License 5 votes vote down vote up
PanGestureHandler: React.ComponentType<PanGestureHandlerProperties>
Example #3
Source File: GestureHandlerNative.d.ts    From nlw2-proffy with MIT License 5 votes vote down vote up
export declare function PanGestureHandler(props: PanGestureHandlerProperties): JSX.Element;
Example #4
Source File: GestureHandler.tsx    From nlw2-proffy with MIT License 5 votes vote down vote up
PanGestureHandler = Dummy as React.ComponentType<
  PanGestureHandlerProperties
>
Example #5
Source File: index.tsx    From react-native-scroll-bottom-sheet with MIT License 5 votes vote down vote up
/**
   * Pan gesture handler events for drawer handle and content
   */
  private onHandleGestureEvent: PanGestureHandlerProperties['onGestureEvent'];
Example #6
Source File: index.tsx    From react-native-scroll-bottom-sheet with MIT License 5 votes vote down vote up
private onDrawerGestureEvent: PanGestureHandlerProperties['onGestureEvent'];