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:
Родитель
c629cdc39a
Коммит
cd5fe06abe
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче