check platform in react native fro if condition 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
},
});