Skip to content

[Public Interface] Create whitelist internal modules that need to be exposed publicly #1821

@brentvatne

Description

@brentvatne

As pointed out in #1808, on 0.7.0-rc+ requiring modules that are internal to React Native (eg: require('NativeModules') rather than var { NativeModules } = require('react-native')) is not supported going forward. The new behavior is correct, so we need to help people transition away from the old way. A good example of using this incorrect behavior to access internals can be seen on my react-native-video project.

The purpose of this issue is to ensure that we publicly expose every module that is necessary to build libraries and apps - to do this we simply have to make a whitelist of those modules and add them to react-native.js)

Please add to this issue with internal modules that you use on your projects that are not already listed here. Thanks!

cc @vjeux @amasad

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions