react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
12 lines (11 loc) • 462 B
JavaScript
import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import GestureHandlerRootViewContext from '../GestureHandlerRootViewContext';
export default function GestureHandlerRootView({ style, ...rest }) {
return (<GestureHandlerRootViewContext.Provider value>
<View style={style ?? styles.container} {...rest}/>
</GestureHandlerRootViewContext.Provider>);
}
const styles = StyleSheet.create({
container: { flex: 1 },
});