reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
216 stars 327 forks source link

android,react-native 通过回调启动mDelegate.onCreate,动画控件失效 #624

Closed ethanzway closed 1 year ago

ethanzway commented 1 year ago

重写ReactNativeActivity,将原来 onCreate的this.mDelegate.onCreate(savedInstanceState);拆分出来 在目前程序中,通过异步在DialogBox中确认后在进行this.mDelegate.onCreate(savedInstanceState);方法调用(bindMDelegate是新增方法,实现mDelegate.onCreate,DialogManager就是创建一个弹窗,传入回调函数)

  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    DialogManager.start(this, ()-> {
      MainActivity.super.bindMDelegate(savedInstanceState);
      //return null;
    });
  }

目前程序能正常启动,但是涉及Animated控件全部失效 请问哪里出了问题,该如何调整

github-actions[bot] commented 1 year ago

👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.