We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c21dfd3 + 72f2d3e commit bafbc07Copy full SHA for bafbc07
1 file changed
packages/react-native-gesture-handler/src/mocks/GestureButtons.tsx
@@ -1,8 +1,8 @@
1
import React from 'react';
2
import { TouchableNativeFeedback, View } from 'react-native';
3
-export const RawButton = ({ enabled, ...rest }: any) => (
+export const RawButton = ({ enabled, children, ...rest }: any) => (
4
<TouchableNativeFeedback disabled={enabled === false} {...rest}>
5
- <View />
+ {children ?? <View />}
6
</TouchableNativeFeedback>
7
);
8
export const BaseButton = RawButton;
0 commit comments