React native 更新pod后,我得到了这个错误。无效的UIAccessibilityTraits';选项卡';

React native 更新pod后,我得到了这个错误。无效的UIAccessibilityTraits';选项卡';,react-native,React Native,我正在使用react native选项卡视图。我不确定这与这个错误有关 <TabView bounces={false} navigationState={this.state} swipeEnabled={false} renderScene={() => null} renderTabBar={props => ( <T

我正在使用react native选项卡视图。我不确定这与这个错误有关

 <TabView
            bounces={false}
            navigationState={this.state}
            swipeEnabled={false}
            renderScene={() => null}
            renderTabBar={props => (
              <TabBar
                {...props}
                indicatorStyle={{
                  backgroundColor: "#212121",
                  height: "100%",
                  width: "38%",
                  marginLeft: "5%"
                }}
                style={{ backgroundColor: "#FFD54F" }}
                inactiveColor="#757575"
                activeColor={"#212121"}
                pressOpacity={0.9}
                tabStyle={{
                  backgroundColor: "#FFD54F",
                  marginBottom: 3
                }}
                labelStyle={{ fontWeight: "bold" }}
              />
            )}
            onIndexChange={index => this.setState({ index })}
            initialLayout={{
              width: Dimensions.get("window").width
            }}
          />
          {pages}
null}
renderTabBar={props=>(
)}
onIndexChange={index=>this.setState({index})}
初始布局={{
宽度:尺寸。获取(“窗口”)。宽度
}}
/>
{pages}
上面的代码在更新之前工作

当我使用react native tab view进入屏幕时,会发生此错误

我怎样才能解决这个问题

谢谢


这是版本问题。我刚刚重新安装了react native选项卡-view@2.11.0. 成功了!我希望这对其他人有用

你能帮我发一些代码吗?/@KishanBharda我发了代码。请检查此项。可能此问题将对您有所帮助。它说您必须安装dependency 2.11.0。您的意思是,我需要安装react native选项卡吗-view@2.11.0. ?它起作用了!我真的很感谢你的帮助!任何2.XX.XX版本都可以。我想吊舱有问题。