Skip to content

Commit a31cdd7

Browse files
committed
fix: bring back the warning suppression for react-native js-only side
1 parent a7ed5ff commit a31cdd7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

patches/react-native+0.84.1.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js b/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js
2+
index 9ef598d..2e12805 100644
3+
--- a/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js
4+
+++ b/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js
5+
@@ -32,12 +32,6 @@ function currentlyFocusedInput(): ?HostInstance {
6+
* If no text field is focused it returns null
7+
*/
8+
function currentlyFocusedField(): ?number {
9+
- if (__DEV__) {
10+
- console.error(
11+
- 'currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput',
12+
- );
13+
- }
14+
-
15+
return findNodeHandle<$FlowFixMe>(currentlyFocusedInputRef);
16+
}
17+

0 commit comments

Comments
 (0)