File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Libraries/Components/TextInput Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ var DragExample = React.createClass({
49
49
onDragEnter = { ( ) => this . setState ( { dragOver : true } ) }
50
50
onDragLeave = { ( ) => this . setState ( { dragOver : false } ) }
51
51
onDrop = { ( e ) => this . setState ( { files : e . nativeEvent . files , dragOver : false } ) } >
52
- < Text style = { { fontSize : 14 , color : 'white ' } } >
53
- { this . state . files ? this . state . files : 'Drag here a file' }
52
+ < Text style = { { fontSize : 14 , color : 'black ' } } >
53
+ { this . state . files . length > 0 ? this . state . files : 'Drag here a file' }
54
54
</ Text >
55
55
56
56
</ View >
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ var TextInputState = {
40
40
focusTextInput : function ( textFieldID : ?number ) {
41
41
if ( this . _currentlyFocusedID !== textFieldID && textFieldID !== null ) {
42
42
this . _currentlyFocusedID = textFieldID ;
43
- if ( Platform . OS === 'ios' ) {
43
+ if ( Platform . OS === 'ios' || Platform . OS === 'osx' ) {
44
44
UIManager . focus ( textFieldID ) ;
45
45
} else if ( Platform . OS === 'android' ) {
46
46
UIManager . dispatchViewManagerCommand (
You can’t perform that action at this time.
0 commit comments