Skip to content

Commit

Permalink
Share getExportedCustomDirectEventTypeConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Aug 1, 2022
1 parent 9552054 commit b734a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ protected void addEventEmitters(final ThemedReactContext reactContext, final Rea

@Override
public Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(ReactSlidingCompleteEvent.EVENT_NAME, MapBuilder.of("registrationName", "onRNCSliderSlidingComplete"),
ReactSlidingStartEvent.EVENT_NAME, MapBuilder.of("registrationName", "onRNCSliderSlidingStart"));
return ReactSliderManagerImpl.getExportedCustomDirectEventTypeConstants();
}

// these props are not available on Android, however we must override their setters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ protected void addEventEmitters(final ThemedReactContext reactContext, final Rea

@Override
public Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(ReactSlidingCompleteEvent.EVENT_NAME, MapBuilder.of("registrationName", "onRNCSliderSlidingComplete"),
ReactSlidingStartEvent.EVENT_NAME, MapBuilder.of("registrationName", "onRNCSliderSlidingStart"));
return ReactSliderManagerImpl.getExportedCustomDirectEventTypeConstants();
}
}

0 comments on commit b734a21

Please sign in to comment.