-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
74 lines (66 loc) · 1.88 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import * as React from 'react';
import {View, PlatformColor, Platform, Text, Image} from 'react-native';
export default function App() {
return (
<View
style={{
width: 350,
height: 350,
// backgroundColor:
// Platform.OS == 'android'
// ? PlatformColor('?attr/colorAccent')
// : 'blue',
// shadowColor:
// Platform.OS == 'android'
// ? PlatformColor('?attr/colorAccent')
// : 'green',
// borderColor: 'green',
borderWidth: 5,
alignSelf: 'center',
marginTop: 'auto',
marginBottom: 'auto',
}}>
<Text
style={{
// borderColor:
// Platform.OS == 'android'
// ? PlatformColor('?attr/colorPrimary')
// : 'blue',
borderWidth: 2,
backgroundColor:
Platform.OS == 'android'
? PlatformColor('?attr/colorAccent')
: 'blue',
color:
Platform.OS == 'android'
? PlatformColor('?attr/colorPrimary')
: 'blue',
}}>
Here we goo
</Text>
<Image
source={{
uri: 'https://source.unsplash.com/user/c_v_r/1900x800',
}}
style={{
width: 100,
height: 100,
// overlayColor:
// Platform.OS == 'android'
// ? PlatformColor('?attr/colorPrimary')
// : 'blue',
// Platform.OS == 'android'
// ? PlatformColor('?attr/colorPrimary')
// : 'blue',
tintColor:
Platform.OS == 'android'
? PlatformColor('?attr/colorAccent')
: 'blue',
}}
/>
</View>
);
}
// case 6:
// this.mViewManager.setBackgroundColor(view, value == null ? 0 : ColorPropConverter.getColor(value, view.getContext()));
// break;