Fix bottom sheet in Fabric Android

Summary: This diff fixes the rendering of Bottom Sheet in Fabric Android. In D15343702 we added state as part of the "preallocateView" method but we forgot to call viewManager.updateState(), this prevents the state to be updated during the first render.

Reviewed By: shergin

Differential Revision: D15476042

fbshipit-source-id: cd6fc9bdd178589d2e04f85723425b5e5c3e5a04
This commit is contained in:
David Vacca 2019-05-24 11:22:09 -07:00 коммит произвёл Facebook Github Bot
Родитель c629cdc39a
Коммит cd5fe06abe
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -193,6 +193,9 @@ public class MountingManager {
viewManager = mViewManagerRegistry.get(componentName);
view = mViewFactory.getOrCreateView(componentName, propsDiffMap, stateWrapper, themedReactContext);
view.setId(reactTag);
if (stateWrapper != null) {
viewManager.updateState(view, stateWrapper);
}
}
ViewState viewState = new ViewState(reactTag, view, viewManager);