Fix scrolling of Android Horizontal Scroll View

Summary:
This diff fixes the scrolling of Android Horizontal Scroll View, the root cause was that Binding was mounting a ScrollView instead of an AndroidHorizontalScrollView component.
This will be automatically fixed when all the View components are autogenerated.

Reviewed By: shergin

Differential Revision: D14594622

fbshipit-source-id: 7c477ca167188ea9c473f61145461d3cf1696e17
This commit is contained in:
David Vacca
2019-03-29 00:39:43 -07:00
committed by Facebook Github Bot
parent ed0085ca1b
commit 5d0d50cc44

View File

@@ -445,8 +445,9 @@ void Binding::schedulerDidRequestPreliminaryViewAllocation(
local_ref<ReadableMap::javaobject> readableMap =
castReadableMap(ReadableNativeMap::newObjectCxxArgs(shadowView.props->rawProps));
auto component = getPlatformComponentName(shadowView);
preallocateView(
javaUIManager_, surfaceId, shadowView.tag, make_jstring(shadowView.componentName).get(), readableMap.get(), isLayoutableShadowNode);
javaUIManager_, surfaceId, shadowView.tag, component.get(), readableMap.get(), isLayoutableShadowNode);
}
void Binding::registerNatives() {