Closed romanlv closed 8 years ago
I believe this is a duplicate of #76. See there for more.
Well, somehow it works for <View>
elements, you can wrap TextInput with <View>
(with multiple levels) and the whole pack will be rendered by the shallow
function.
Can it just reuse the same logic for TouchableOpacity
(and similar advanced containers)? For the tests it will be useful to "see through" those system elements...
I'm trying to test a simple component, where some areas are wrapped with
I've tried different methods and rendering functions, it only can find/traverse to
TouchableOpacity
element, but not children inside it? Is it a problem of react-native-mock or enzyme?Any ideas on how to test this component?