首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新pod后,我得到了这个错误。无效的选项卡‘UIAccessibilityTraits’

更新pod后,我得到了这个错误。无效的选项卡‘UIAccessibilityTraits’
EN

Stack Overflow用户
提问于 2020-02-01 13:16:56
回答 1查看 889关注 0票数 1

我使用的是react-native-tab-view。我不确定这和这个错误有什么关系。

代码语言:javascript
复制
 <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}

以上代码在更新前有效。

当我使用react-native-tab-view进入屏幕时出现此错误。

我怎么才能解决这个问题呢?

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-07 17:36:47

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60014226

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档