File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/react-native/Libraries/Components/TextInput Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import StyleSheet, {
1313 type ViewStyleProp ,
1414} from '../../StyleSheet/StyleSheet' ;
1515import Platform from '../../Utilities/Platform' ;
16+ import warnOnce from '../../Utilities/warnOnce' ;
1617import RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent' ;
1718import * as React from 'react' ;
1819
@@ -86,15 +87,18 @@ type Props = $ReadOnly<{|
8687| } > ;
8788
8889class InputAccessoryView extends React . Component < Props > {
89- // once the 'visionos' is implemented as a platform, we can remove this
90+ // TODO: once the 'visionos' is implemented as a platform, we can remove this
9091 componentDidMount ( ) {
9192 if ( Platform . isVisionOS ) {
92- console . warn ( 'InputAccessoryView is not available on visionOS platform.' ) ;
93+ warnOnce (
94+ 'component-unavailable' ,
95+ 'InputAccessoryView is not available on visionOS platform.' ,
96+ ) ;
9397 }
9498 }
9599
96100 render ( ) : React . Node {
97- // once the 'visionos' is implemented as a platform, we can remove this
101+ // TODO: once the 'visionos' is implemented as a platform, we can remove this
98102 if ( Platform . isVisionOS ) {
99103 return null ;
100104 }
You can’t perform that action at this time.
0 commit comments