You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @zbtang! I really like this library you've put together, I'm using it in an app I'm writing for my company. There is a big issue that is preventing us from using it however: each page inside the IndicatorViewPager cannot have dynamic content. Since we just pass a raw View for each page instead of a Component, we can't update it at will if the state of our app changes later.
and in the render method of that component where you need this ViewPager you just need to call this method in side IndicatorViewpager so it can populate its children, like this
Hi @zbtang! I really like this library you've put together, I'm using it in an app I'm writing for my company. There is a big issue that is preventing us from using it however: each page inside the
IndicatorViewPager
cannot have dynamic content. Since we just pass a rawView
for each page instead of aComponent
, we can't update it at will if the state of our app changes later.I believe this can be fixed if we just change this function: https://github.com/zbtang/React-Native-ViewPager/blob/master/viewpager/ViewPager.js#L136-L157. If the passed object is not a
View
, instead of issuing a warning we can just wrap it in aView
and proceed as normal.The text was updated successfully, but these errors were encountered: