@thefunbots/react-native-pointer-interactions
Version:
Expose iPad mouse & track pads interactions to React Native
15 lines (12 loc) • 386 B
JavaScript
import { requireNativeComponent, View, Platform } from 'react-native';
const PointerInteractionView = Platform.OS === 'ios'
? requireNativeComponent('PointerInteraction')
: View;
PointerInteractionView.defaultProps = {
...View.defaultProps,
pointerMode: 'automatic',
hoverShadow: true,
hoverTint: true,
hoverScale: true
}
export { PointerInteractionView }