File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
packages/react-native-gesture-handler
android/src/main/java/com/swmansion/gesturehandler/core Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -899,8 +899,7 @@ open class GestureHandler {
899899 if (config.hasKey(KEY_MOUSE_BUTTON )) {
900900 handler.mouseButton = config.getInt(KEY_MOUSE_BUTTON )
901901 }
902- if (config.hasKey(WAIT_FOR ) && config.hasKey(SIMULTANEOUS_HANDLERS ) && config.hasKey(BLOCKS_HANDLERS )) {
903- // Compatibility with old api, it will never happen on new api
902+ if (handler.actionType != ACTION_TYPE_NATIVE_DETECTOR ) {
904903 interactionManager.dropRelationsForHandlerWithTag(handler.tag)
905904 interactionManager.configureInteractions(handler, config)
906905 }
@@ -925,9 +924,6 @@ open class GestureHandler {
925924 private const val KEY_HIT_SLOP_HORIZONTAL = " horizontal"
926925 private const val KEY_HIT_SLOP_WIDTH = " width"
927926 private const val KEY_HIT_SLOP_HEIGHT = " height"
928- private const val WAIT_FOR = " waitFor"
929- private const val SIMULTANEOUS_HANDLERS = " simultaneousHandlers"
930- private const val BLOCKS_HANDLERS = " blocksHandlers"
931927
932928 private fun handleHitSlopProperty (handler : GestureHandler , config : ReadableMap ) {
933929 if (config.getType(KEY_HIT_SLOP ) == ReadableType .Number ) {
Original file line number Diff line number Diff line change @@ -183,8 +183,7 @@ - (void)updateConfig:(NSDictionary *)config
183183 }
184184 }
185185
186- if (config[@" waitFor" ] != nil and config[@" simultaneousHandlers" ] != nil and config[@" blocksHandlers" ] != nil ) {
187- // Compatibility with old api, it will never happen on new api
186+ if (_actionType != RNGestureHandlerActionTypeNativeDetector) {
188187 [self updateRelations: config];
189188 }
190189}
You can’t perform that action at this time.
0 commit comments