File tree 2 files changed +9
-3
lines changed 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 18
18
var React = require ( 'react-native' ) ;
19
19
var {
20
20
AlertIOS,
21
+ Platform,
21
22
Text,
23
+ ToastAndroid,
22
24
TouchableHighlight,
23
25
View,
24
26
} = React ;
@@ -73,7 +75,11 @@ var TimerTester = React.createClass({
73
75
var msg = 'Finished ' + this . _ii + ' ' + this . props . type + ' calls.\n' +
74
76
'Elapsed time: ' + e + ' ms\n' + ( e / this . _ii ) + ' ms / iter' ;
75
77
console . log ( msg ) ;
76
- AlertIOS . alert ( msg ) ;
78
+ if ( Platform . OS === 'ios' ) {
79
+ AlertIOS . alert ( msg ) ;
80
+ } else if ( Platform . OS === 'android' ) {
81
+ ToastAndroid . show ( msg , ToastAndroid . SHORT ) ;
82
+ }
77
83
this . _start = 0 ;
78
84
this . forceUpdate ( ( ) => { this . _ii = 0 ; } ) ;
79
85
return ;
Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ var UIExplorerButton = React.createClass({
42
42
43
43
var styles = StyleSheet . create ( {
44
44
button : {
45
- borderColor : 'dimgray ' ,
45
+ borderColor : '#696969 ' ,
46
46
borderRadius : 8 ,
47
47
borderWidth : 1 ,
48
48
padding : 10 ,
49
49
margin : 5 ,
50
50
alignItems : 'center' ,
51
51
justifyContent : 'center' ,
52
- backgroundColor : 'lightgrey ' ,
52
+ backgroundColor : '#d3d3d3 ' ,
53
53
} ,
54
54
} ) ;
55
55
You can’t perform that action at this time.
0 commit comments