mirror of
https://github.com/status-im/react-native.git
synced 2025-02-06 06:34:01 +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:
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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user