tabBar的长期bug

发布于 7 年前作者 jiajuan3630 次浏览最后编辑 7 年前来自 ask
  • 所有安卓机在调用这俩api的时候都会在tabBar显隐之前出现页面闪烁一下然后底部出现黑块的情况。

  • 至少像ios的一样吧,很单纯的隐藏显示,没有黑块的出现和页面闪烁的情况。

  • 随手写一个tabBar都有这种情况,安卓所有机器可测

  • 随手写一个tabBar都有这种情况,安卓所有机器可测

4 回复
jingshen
jingshen1 楼6 年前

还有这个问题

chaotan
chaotan3 楼6 年前

安卓的问题估计,总是闪一下!

kxu
kxu4 楼5 年前

Taro的代码,闪黑体验极差

export default class My extends Component {
  constructor(props) {
    super(props)
    this.state = {
      isLoginModal: false
    }
  }
  config = {
    navigationBarTitleText: '个人中心',
    enablePullDownRefresh: true
  }
  render() {
    return (

      <View>

        <Button onClick={this.toggleModal}>切换</Button>

      </View>
    )
  }
  toggleModal = () => {
    this.setState({
      isLoginModal: !this.state.isLoginModal
    })
    if (this.state.isLoginModal) {
      showTabBar({
        animation: false
      })
    } else {
      hideTabBar({
        animation: false
      })
    }
  }
}