1 const design = Platform.select({
2 android: {
3 header: true
4 },
5 ios: {
6 header: false
7 },
8 });
1Platform.select({
2 ios: {
3 backgroundColor: 'red',
4 },
5 android: {
6 backgroundColor: 'blue',
7 },
8})
1 import {Platform} from 'react-native';
2 st styles = StyleSheet.create({
3 container: {
4 flex: 1,
5 ...Platform.select({
6 ios: {
7 backgroundColor: 'red',
8 },
9 android: {
10 backgroundColor: 'blue',
11 },
12 }),
13 },
14 });
15