From dfc529c519d97b31a4855c5eb8b85c4ee9330665 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Wed, 23 Jun 2021 11:13:00 +0100 Subject: [PATCH] Images: Remove mention of platform-specific extensions This functionality was removed in https://github.com/facebook/metro/commit/7674ca076e03483a17a37c31481807e2b67dea29, released in [Metro 0.59.0](https://github.com/facebook/metro/releases/tag/v0.59.0) and eventually in RN 0.64. This was a poorly-communicated breaking change at the time and we might want to undo it, but for now the website should reflect what actually works. Related: https://github.com/facebook/react-native/issues/31099 https://github.com/facebook/react-native/issues/31348 https://github.com/facebook/metro/issues/676 --- docs/images.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/images.md b/docs/images.md index 548524df662..ac288c229e5 100644 --- a/docs/images.md +++ b/docs/images.md @@ -11,9 +11,9 @@ React Native provides a unified way of managing images and other media assets in ``` -The image name is resolved the same way JS modules are resolved. In the example above, the bundler will look for `my-icon.png` in the same folder as the component that requires it. Also, if you have `my-icon.ios.png` and `my-icon.android.png`, the bundler will pick the correct file for the platform. +The image name is resolved the same way JS modules are resolved. In the example above, the bundler will look for `my-icon.png` in the same folder as the component that requires it. -You can also use the `@2x` and `@3x` suffixes to provide images for different screen densities. If you have the following file structure: +You can use the `@2x` and `@3x` suffixes to provide images for different screen densities. If you have the following file structure: ``` .