Last active
November 12, 2016 21:41
-
-
Save ofirdagan/5c0e046e0975ef5ff6b256cbdc5f886e to your computer and use it in GitHub Desktop.
enzyme-drivers-simple-react-native-component-for-medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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