Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add support for native pseudo-OS to Platform.select (#26966)
Summary: When you write platform-specific code using [file extensions](https://facebook.github.io/react-native/docs/platform-specific-code#platform-specific-extensions), you can specify `.ios.js`, `.android.js`, or the catch-all `.native.js` when you are sharing code with a web project. This `native` shortcut is missing for the `Platform.select` method, and this PR is adding support for that. ## Changelog [General] [Added] - Platform.select now supports native as an option. Pull Request resolved: #26966 Test Plan: Added relevant passing unit tests for Platform module. Differential Revision: D18323670 Pulled By: cpojer fbshipit-source-id: 7524c1914beab4f86041dcf8e60875380ebf7e02
- Loading branch information
1 parent
e1d03b4
commit a6fc0898de990959d201b9665501deda215e41a4
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters