Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions playground/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type RnnButtonProps = {

export default class RnnButton extends React.Component<RnnButtonProps> {
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;
Expand All @@ -27,7 +27,7 @@ export default class RnnButton extends React.Component<RnnButtonProps> {
const color = props.testID ? '#5B49F5' : '#65C888';

return (
<TouchableOpacity>
<TouchableOpacity onPress={onPress}>
<View style={[styles.buttonContainer, { backgroundColor: color }]}>
<Text style={styles.buttonText} {...props}>
{props.label}
Expand Down