diff --git a/src/Rive.tsx b/src/Rive.tsx index e5b95a98..dec228ac 100644 --- a/src/Rive.tsx +++ b/src/Rive.tsx @@ -429,6 +429,7 @@ type RiveProps = { url?: string; style?: StyleProp; testID?: string; + isDisableTouch?: boolean; }; const VIEW_NAME = 'RiveReactNativeView'; @@ -445,6 +446,7 @@ type Props = { layoutScaleFactor?: number; style?: ViewStyle; testID?: string; + isDisableTouch?: boolean; alignment?: Alignment; artboardName?: string; /** @@ -488,6 +490,7 @@ const RiveContainer = React.forwardRef( source, stateMachineName, testID, ++ isDisableTouch, }, ref ) => { @@ -1028,6 +1031,7 @@ const RiveContainer = React.forwardRef( onPressOut={(event: GestureResponderEvent) => touchEnded(event.nativeEvent.locationX, event.nativeEvent.locationY) } + disabled={isDisableTouch} >