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, {
13
13
type ViewStyleProp ,
14
14
} from '../../StyleSheet/StyleSheet' ;
15
15
import Platform from '../../Utilities/Platform' ;
16
+ import warnOnce from '../../Utilities/warnOnce' ;
16
17
import RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent' ;
17
18
import * as React from 'react' ;
18
19
@@ -86,15 +87,18 @@ type Props = $ReadOnly<{|
86
87
| } > ;
87
88
88
89
class 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
90
91
componentDidMount ( ) {
91
92
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
+ ) ;
93
97
}
94
98
}
95
99
96
100
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
98
102
if ( Platform . isVisionOS ) {
99
103
return null ;
100
104
}
You can’t perform that action at this time.
0 commit comments