mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable creating ReadableNativeMap outside of OnLoad
Reviewed By: mhorowitz Differential Revision: D3147576 fb-gh-sync-id: ddf3a4332cca69838d7bcce82b71bea5591b6395 fbshipit-source-id: ddf3a4332cca69838d7bcce82b71bea5591b6395
This commit is contained in:
committed by
Facebook Github Bot 5
parent
9923d3fa6f
commit
9ad88c868f
@@ -204,6 +204,8 @@ jni::local_ref<ReadableNativeArray::jhybridobject> ReadableNativeArray::getArray
|
||||
}
|
||||
}
|
||||
|
||||
// Export getMap() so we can workaround constructing ReadableNativeMap
|
||||
__attribute__((visibility("default")))
|
||||
jobject ReadableNativeArray::getMap(jint index) {
|
||||
return createReadableNativeMapWithContents(Environment::current(), array.at(index));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user