Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Platform } from 'react-native';
let specificNumber = Platform.select({
android: 42,
ios: 42,
web: -1
});
if (Platform.OS === 'web') {
specificNumber = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment