在 UIManager 中找不到 Expo SDK43“AndroidCheckBox”

Rya*_*ent 7 android-checkbox expo react-native-community

升级到 expo SDK 43 后,我在 Android 上收到此错误:

Invariant Violation: requireNativeComponent: "AndroidCheckBox" was not found in the UIManager.

This error is located at:
    in AndroidCheckBox (created by CheckBox)
    in CheckBox
    in CheckBoxWithRef (at SimpleCheckbox.js:18)    <-- custom component
    in SimpleCheckbox (at LoginScreen.js:76)        <-- custom component
Run Code Online (Sandbox Code Playgroud)

我正在"@react-native-community/checkbox": "^0.5.9"托管工作流程上使用 , 。

我尝试运行,expo install @react-native-community/checkbox因为我看到其他帖子以这种方式解决了他们自己的“在 UIManager 中找不到”错误,但它并没有解决问题。

Rya*_*ent 15

@react-native-community/checkbox我通过替换来修复它expo-checkbox