Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么和Expo集成? #250

Open
laogui opened this issue Aug 19, 2023 · 2 comments
Open

怎么和Expo集成? #250

laogui opened this issue Aug 19, 2023 · 2 comments

Comments

@laogui
Copy link

laogui commented Aug 19, 2023

不是纯expo项目,但用到了Expo modules,现在android 打包报错

import expo.modules.ReactActivityDelegateWrapper;
import com.reactnative.hybridnavigation.ReactAppCompatActivity;

public class MainActivity extends ReactAppCompatActivity {
    ...
    @Override
    protected ReactActivityDelegate createReactActivityDelegate() {
      return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, new DefaultReactActivityDelegate(
          this,
          getMainComponentName(),
          // If you opted-in for the New Architecture, we enable the Fabric Renderer.
          DefaultNewArchitectureEntryPoint.getFabricEnabled()));
    }
}

上面这个this报错不知道怎么处理,不懂java

@listenzz
Copy link
Owner

我看看

@listenzz
Copy link
Owner

不支持和 expo modules 集成。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants