Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow react-native-macos package.json shims
This commit makes it possible to add a `react-native-macos` field to package.json that functions the same way as `react-native` to shim one-level deep requires/imports. See facebook/react-native#5917 for details of `browser` and `react-native fields`. This commit makes it possible to share code more broadly between react native platforms. For example, take the following package.json field: ``` "react-native-macos": { "react-native": "react-native-macos" } ``` With this set our components can import from react-native rather than react-native-macos, allowing code sharing between react native platforms more easily.
- Loading branch information