diff --git a/Libraries/Components/TextInput/InputAccessoryView.android.js b/Libraries/Components/TextInput/InputAccessoryView.android.js new file mode 100644 index 00000000000000..f2177bbdb0874a --- /dev/null +++ b/Libraries/Components/TextInput/InputAccessoryView.android.js @@ -0,0 +1,4 @@ +'use strict'; + +module.exports = require('../UnimplementedViews/UnimplementedView'); + diff --git a/Libraries/Components/TextInput/InputAccessoryView.js b/Libraries/Components/TextInput/InputAccessoryView.ios.js similarity index 89% rename from Libraries/Components/TextInput/InputAccessoryView.js rename to Libraries/Components/TextInput/InputAccessoryView.ios.js index 3b1142cd7df041..aaa3d45e833ed8 100644 --- a/Libraries/Components/TextInput/InputAccessoryView.js +++ b/Libraries/Components/TextInput/InputAccessoryView.ios.js @@ -9,14 +9,12 @@ */ import * as React from 'react'; -import Platform from '../../Utilities/Platform'; import StyleSheet, { type ViewStyleProp, type ColorValue, } from '../../StyleSheet/StyleSheet'; import RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent'; -import UnimplementedView from '../UnimplementedViews/UnimplementedView'; /** * Note: iOS only @@ -89,15 +87,6 @@ type Props = $ReadOnly<{| class InputAccessoryView extends React.Component { render(): React.Node { - if (Platform.OS !== 'ios') { - console.warn(' is only supported on iOS.'); - return ( - - {this.props.children} - - ); - } - if (React.Children.count(this.props.children) === 0) { return null; }