Skip to content

Instantly share code, notes, and snippets.

@ofirdagan
Last active November 12, 2016 21:41
Show Gist options
  • Save ofirdagan/5c0e046e0975ef5ff6b256cbdc5f886e to your computer and use it in GitHub Desktop.
Save ofirdagan/5c0e046e0975ef5ff6b256cbdc5f886e to your computer and use it in GitHub Desktop.
enzyme-drivers-simple-react-native-component-for-medium
export default function DummyReactNativeComponent({text, onTap}) {
return (
<View>
<Text testID="myText">Some Text</Text>
<Text testID="textFromProp" onPress={onTap}>{text}</Text>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment