Answers for "cannot add a child that doesn't have a yoganode touchablehighlight"

0

cannot add a child that doesn't have a yoganode touchablehighlight

function MyComponent(props) {
  return (
    <View {...props} style={{ flex: 1, backgroundColor: '#fff' }}>
      <Text>My Component</Text>
    </View>
  );
}

<TouchableHighlight
  activeOpacity={0.6}
  underlayColor="#DDDDDD"
  onPress={() => alert('Pressed!')}>
  <MyComponent />
</TouchableHighlight>;
Posted by: Guest on May-27-2020

Code answers related to "cannot add a child that doesn't have a yoganode touchablehighlight"

Code answers related to "Javascript"

Browse Popular Code Answers by Language