Search in sources :

Example 1 with ViewPagerScreenChangedEvent

use of com.reactnativenavigation.events.ViewPagerScreenChangedEvent in project react-native-navigation by wix.

the class ContentViewPagerAdapter method onPageSelected.

@Override
public void onPageSelected(int position) {
    EventBus.instance.post(new ViewPagerScreenChangedEvent());
    sendDisappearEvents(currentPosition);
    currentPosition = position;
    EventBus.instance.post(new ScreenChangedEvent(pageParams.get(currentPosition)));
    sendTabSelectedEventToJs();
    sendAppearEvents(position);
}
Also used : ScreenChangedEvent(com.reactnativenavigation.events.ScreenChangedEvent) ViewPagerScreenChangedEvent(com.reactnativenavigation.events.ViewPagerScreenChangedEvent) ViewPagerScreenChangedEvent(com.reactnativenavigation.events.ViewPagerScreenChangedEvent)

Aggregations

ScreenChangedEvent (com.reactnativenavigation.events.ScreenChangedEvent)1 ViewPagerScreenChangedEvent (com.reactnativenavigation.events.ViewPagerScreenChangedEvent)1