-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 a6fc089
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