diff --git a/playground/src/components/Button.tsx b/playground/src/components/Button.tsx index 115b504559..fa5f58a732 100644 --- a/playground/src/components/Button.tsx +++ b/playground/src/components/Button.tsx @@ -18,7 +18,7 @@ type RnnButtonProps = { export default class RnnButton extends React.Component { render() { - const { platform, ...props } = this.props; + const { platform, onPress, ...props } = this.props; // If the platform prop is provided, only render if provided platform matches the current platform. if (platform && platform !== Platform.OS) { return null; @@ -27,7 +27,7 @@ export default class RnnButton extends React.Component { const color = props.testID ? '#5B49F5' : '#65C888'; return ( - + {props.label}