mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: `WritableNativeMap` has two constructors: ```c++ WritableNativeMap(); WritableNativeMap(folly::dynamic &&val); ``` but `WritableNativeMap` has only one constructor: ```c++ WritableNativeMap(); ``` Without a second constructor, I am not able to create `WritableNativeMap` from the existing array. I added this second constructor because I need it for `react-native-reanimated`. ## Changelog [Android] [Added] - Added missing constructor to WritableNativeArray Pull Request resolved: https://github.com/facebook/react-native/pull/32796 Test Plan: ```c++ std::shared_ptr<jsi::Runtime> rt = facebook::hermes::makeHermesRuntime(); jsi::Value value; WritableNativeMap::newObjectCxxArgs(jsi::dynamicFromValue(*rt.get(), value)); ``` Reviewed By: cortinico Differential Revision: D33285316 Pulled By: lunaleaps fbshipit-source-id: 1bbd816892f34ae6fef747066893fe3b803c088d
Building React Native for Android
See the docs on the wiki.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.