Я столкнулся с проблемой, пытаясь собрать свое приложение в Android с помощьюact-native, я показываю ошибку ниже и не знаю, как ее исправить, я искал об этом, но не нашел решения за это кто-нибудь может мне помочь?
Окружающая среда
- Реактивно-родной: 0,55,3
- Реакция: 16.3.1
- NodeJS: 10.13.0
- NPM: 6.4.1
Кажется, ошибка происходит в этом коде:
<ImageBackground source={background} style={styles.backgroundImage} resizeMode="cover">
<StatusBar barStyle="light-content" backgroundColor="#5E3794" />
<View style={styles.container}>
<View style={{ flex: 1, justifyContent: 'center' }}>
<Image source={AppLogo} style={styles.image} resizeMode="contain" />
</View>
<View>
<Button
onPress={() => { navigate('Login'); }}
title="LOGIN"
titleStyle={styles.loginText}
containerStyle={styles.btnContainerStyle}
buttonStyle={styles.buttonStyle}
/>
<LinkButton
containerStyle={styles.linkContainer}
onPress={() => { navigate('SignUp'); }}>
<Text style={styles.linkText}>
New Account
</Text>
</LinkButton>
<View style={styles.termsOfUseContainer}>
<Text style={styles.termsOfUseText}>Accept the</Text>
<Text style={styles.termsOfUseText}>Use terms.</Text>
</View>
</View>
</View>
</ImageBackground>
E/AndroidRuntime: FATAL EXCEPTION: main
Process: br.com.app-name, PID: 4028
java.lang.RuntimeException: com.facebook.react.uimanager.IllegalViewOperationException: Trying to add unknown view tag: 30
detail: View tag:33
children(6): [
9,10,16,19,22,24,
],
viewsToAdd(1): [
[6,30],
],
at com.facebook.react.bridge.ReactContext.handleException(ReactContext.java:311)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:31)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:134)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:105)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
Caused by: com.facebook.react.uimanager.IllegalViewOperationException: Trying to add unknown view tag: 30
detail: View tag:33
children(6): [
9,10,16,19,22,24,
],
viewsToAdd(1): [
[6,30],
],
at com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren(NativeViewHierarchyManager.java:393)
at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:179)
at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:821)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:928)
at com.facebook.react.uimanager.UIViewOperationQueue.access$2100(UIViewOperationQueue.java:46)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:988)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
... 13 more