Skip to content

Commit

Permalink
Remove most of modal state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki authored Jan 11, 2023
1 parent 4d8ba7b commit 542b8c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 112 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ protected ReactModalHostView createViewInstance(ThemedReactContext reactContext)
return new ReactModalHostView(reactContext);
}

@Override
public LayoutShadowNode createShadowNodeInstance() {
return new ModalHostShadowNode();
}

@Override
public Class<? extends LayoutShadowNode> getShadowNodeClass() {
return ModalHostShadowNode.class;
}

@Override
public void onDropViewInstance(ReactModalHostView view) {
super.onDropViewInstance(view);
Expand Down Expand Up @@ -168,8 +158,6 @@ protected void onAfterUpdateTransaction(ReactModalHostView view) {
public Object updateState(
ReactModalHostView view, ReactStylesDiffMap props, StateWrapper stateWrapper) {
view.getFabricViewStateManager().setStateWrapper(stateWrapper);
Point modalSize = ModalHostHelper.getModalHostSize(view.getContext());
view.updateState(modalSize.x, modalSize.y);
return null;
}

Expand Down

0 comments on commit 542b8c0

Please sign in to comment.