detect platform in react native code example
Example: react native get OS
const design = Platform.select({
android: {
header: true
},
ios: {
header: false
},
});
const design = Platform.select({
android: {
header: true
},
ios: {
header: false
},
});