Coder Social home page Coder Social logo

Comments (6)

A-ANing avatar A-ANing commented on June 30, 2024 1

@zyslife 谢谢啦 我在轮播图中使用了shouldComponentUpdate解决了header为轮播图问题 PureComponent好像判断不了
给轮播图添加一个props 通过shouldComponentUpdate 判定props来防止切换tab造成轮播图render()

from react-native-head-tab-view.

A-ANing avatar A-ANing commented on June 30, 2024

除了切换tab轮播图会有异常外也不能滑动轮播图滑动轮播图会切换tab轮播图也不能点击了
这里给TabView添加headerRespond={true}可以解决滑动点击问题
不知道切换tab怎么防止轮播图出现问题
IMG_2496

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

除了切换tab轮播图会有异常外也不能滑动轮播图滑动轮播图会切换tab轮播图也不能点击了
这里给TabView添加headerRespond={true}可以解决滑动点击问题
不知道切换tab怎么防止轮播图出现问题
IMG_2496

@ngxu 你好,请问切换tab 具体是有什么问题?我没看出来

from react-native-head-tab-view.

A-ANing avatar A-ANing commented on June 30, 2024

@zyslife 比如轮播图正在过度动画中 切换tab 轮播图就没有过度动画了 或者切换tab后 轮播图直接换了一张 问题不大

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

@zyslife 比如轮播图正在过度动画中 切换tab 轮播图就没有过度动画了 或者切换tab后 轮播图直接换了一张 问题不大

@ngxu 你可以尝试将轮播图封装到一个组件中,然后使用PureComponent,应该是可以解决该问题

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

好的,那我关掉这个问题了哦~

from react-native-head-tab-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.