Skip to content

Instantly share code, notes, and snippets.

@liamgriffin
Created May 18, 2021 14:34
Show Gist options
  • Save liamgriffin/a4814f5990263f94bda0637b539a9c76 to your computer and use it in GitHub Desktop.
Save liamgriffin/a4814f5990263f94bda0637b539a9c76 to your computer and use it in GitHub Desktop.
Creating Accessible React Native Apps | React Native Material Ripple
if (Platform.OS === 'android') {
return (
<Ripple onPress={onPressHandler} ...>
{content}
</Ripple>
);
}
return (
<TouchableOpacity onPress={onPressHandler} ...>
{content}
</TouchableOpacity>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment