public class ReactViewPager
extends ViewPager
ViewPager. It's forwarding calls to ViewGroup.addView(android.view.View) to add
views to custom PagerAdapter instance which is used by NativeViewHierarchyManager
to add children nodes according to react views hierarchy.| Constructor and Description |
|---|
ReactViewPager(ReactContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
com.facebook.react.views.viewpager.ReactViewPager.Adapter |
getAdapter() |
protected void |
onAttachedToWindow() |
boolean |
onInterceptTouchEvent(android.view.MotionEvent ev) |
boolean |
onTouchEvent(android.view.MotionEvent ev) |
void |
removeAllViewsFromAdapter() |
void |
setCurrentItemFromJs(int item,
boolean animated) |
void |
setScrollEnabled(boolean scrollEnabled) |
void |
setViews(java.util.List<android.view.View> views) |
public ReactViewPager(ReactContext reactContext)
public com.facebook.react.views.viewpager.ReactViewPager.Adapter getAdapter()
public boolean onInterceptTouchEvent(android.view.MotionEvent ev)
public boolean onTouchEvent(android.view.MotionEvent ev)
public void setCurrentItemFromJs(int item,
boolean animated)
public void setScrollEnabled(boolean scrollEnabled)
protected void onAttachedToWindow()
public void setViews(java.util.List<android.view.View> views)
public void removeAllViewsFromAdapter()