Replies: 7 comments 10 replies
-
Hey @huntie I believe that change will break You can see here how it's done: https://github.com/kirillzyusko/react-native-keyboard-controller/blob/main/src/monkey-patch.android.ts (obviously the solution is a dirty workaround, but it was working for years 🙈) I'll be happy to discuss a better solution/alternative for that or at least add temporarily |
Beta Was this translation helpful? Give feedback.
-
@kirillzyusko is right , that deprecation of deep imports will break , before deprecate that must be sure to implement edge to edge and keyboard related fixes in react native core. |
Beta Was this translation helpful? Give feedback.
-
Oh, sh*t. I just saw this - unfortunately I need a deep-import in Nitro. I use I can't use Is there any chance we can promote this to a public export? |
Beta Was this translation helpful? Give feedback.
-
Just saw this through the 0.80 release. Please consider exporting |
Beta Was this translation helpful? Give feedback.
-
Sorry I dunno if this is the right place to say that, I tried the new strict api on my react native project and I'm getting 94 parsing errors, I had to disabled it for now. Let me know if you need any more info node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:128:34 - error TS1005: ';' expected. 128 get getNodeFromPublicInstance(): getNodeFromPublicInstance { node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:128:36 - error TS1435: Unknown keyword or identifier. Did you mean 'get NodeFromPublicInstance'? 128 get getNodeFromPublicInstance(): getNodeFromPublicInstance { node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:131:4 - error TS1128: Declaration or statement expected. 131 }, node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:132:3 - error TS1434: Unexpected keyword or identifier. 132 get getInternalInstanceHandleFromPublicInstance(): getInternalInstanceHandleFromPublicInstance { node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:132:52 - error TS1005: ';' expected. 132 get getInternalInstanceHandleFromPublicInstance(): getInternalInstanceHandleFromPublicInstance { node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:132:54 - error TS1435: Unknown keyword or identifier. Did you mean 'get InternalInstanceHandleFromPublicInstance'? 132 get getInternalInstanceHandleFromPublicInstance(): getInternalInstanceHandleFromPublicInstance { node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:135:4 - error TS1128: Declaration or statement expected. 135 }, node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:136:1 - error TS1128: Declaration or statement expected. 136 }; Found 94 errors in the same file, starting at: node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js:11. I've some custom tsconfig but even after disabling them the result is the same. |
Beta Was this translation helpful? Give feedback.
-
react-native-network-logger uses |
Beta Was this translation helpful? Give feedback.
-
Internally we import TextAncestorContext from It allows us to detect if we are rendering something inside a Text (we want to block it)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
See the RFC | See the 0.80 release post (incoming)
🚨 Key change: In React Native 0.80, we are deprecating subpath imports (or "deep imports") from the
react-native
npm package.By defining a clear, root-level JavaScript API contract, we aim to minimise future React Native breaking changes and improve long-term predictability for the ecosystem.
Why it matters: While initially deprecated with warnings, we aim to remove these import paths entirely, which will be a breaking change.
This discussion thread
Please raise issues/questions about APIs you are using that are affected by this change. Over our API consultation period (beginning 0.80), we'll evaluate requests for exposing new APIs at the root, or providing alternatives.
Planned sequencing
"exports"
and the Strict TypeScript API.Beta Was this translation helpful? Give feedback.
All reactions