Skip to content

Commit 8249cd4

Browse files
committed
Fix build
1 parent 092815a commit 8249cd4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

website/blog/2025-06-12-react-native-0.80.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ Moreover, the Legacy Architecture of React Native is now officially frozen, and
3131
In this release, we are making moves to improve and stabilize React Native's public JavaScript API. The first step towards this is better scoping of which of our APIs are importable by apps and frameworks. In line with this, we are formally deprecating deep imports from React Native ([see RFC](https://github.com/react-native-community/discussions-and-proposals/pull/894)), and are introducing warnings via ESLint and the JS console.
3232

3333
These warnings are scoped to imports from within your project's source code, and can be [opted out from](/docs/strict-typescript-api). However, please bear in mind that we aim to remove deep imports from React Native's API in a future release, and these should instead be updated to the root import.
34-
\```js title=""
34+
35+
```js
3536
// Before - import from subpath
3637
import {Alert} from 'react-native/Libraries/Alert/Alert';
3738

3839
// After - import from `react-native`
3940
import {Alert} from 'react-native';
40-
\```
41+
```
42+
4143
Some APIs are not exported at root, and will become unavailable without deep imports. This is intentional, in order to reduce the overall surface area of React Native's API. We have an open [feedback thread](https://github.com/react-native-community/discussions-and-proposals/discussions/893) for user issues, and will be working with the community to finalize which APIs we export over (at least) the next two React Native releases. Please share your feedback!
4244

4345
Learn more about this change in our dedicated post: [Moving Towards a Stable JavaScript API](/blog/2025/06/12/moving-towards-a-stable-javascript-api).

0 commit comments

Comments
 (0)