We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a73fbe4 commit 7c5b817Copy full SHA for 7c5b817
jest.setup.js
@@ -46,13 +46,15 @@ jest.mock('react-native-gesture-handler', () => {
46
const React = require('react');
47
const { View } = require('react-native');
48
const GestureHandlerRootView = React.forwardRef(({ children, ...props }, ref) => (
49
- <View ref={ref} {...props}>{children}</View>
+ <View ref={ref} {...props}>
50
+ {children}
51
+ </View>
52
));
53
GestureHandlerRootView.displayName = 'GestureHandlerRootView';
54
return {
55
...jest.requireActual('react-native-gesture-handler'),
56
GestureHandlerRootView,
- gestureHandlerRootHOC: (Component) => Component
57
+ gestureHandlerRootHOC: Component => Component
58
};
59
});
60
0 commit comments