Created
December 27, 2020 23:12
-
-
Save reime005/8eb151967fa51cd56b1787d7f8aa15aa to your computer and use it in GitHub Desktop.
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
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