Skip to content

Commit

Permalink
Fix sendInputEventWithName
Browse files Browse the repository at this point in the history
  • Loading branch information
esutton authored Aug 7, 2019
1 parent 46a05d7 commit 04ad3b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iOS/RCTMaterialKit/MKTouchableManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ - (void)sendTouchEvent:(NSString*)type touch:(UITouch*)touch source:(MKTouchable
@"x": [NSNumber numberWithFloat:location.x],
@"y": [NSNumber numberWithFloat:location.y],
};
[self.bridge enqueueJSCall:@"RCTEventEmitter" method:@"receiveEvent" args:@[dict[@"target"], RCTNormalizeInputEventName(@"topChange"), dict] completion:NULL];
// Temporary fix until release 0.5.1 is fixed
// https://github.com/xinthink/react-native-material-kit/issues/414
// [self.bridge.eventDispatcher sendInputEventWithName:@"topChange" body:dict];

[self.bridge enqueueJSCall:@"RCTEventEmitter" method:@"receiveEvent" args:@[dict[@"target"], RCTNormalizeInputEventName(@"topChange"), dict] completion:NULL];
}

@end

0 comments on commit 04ad3b7

Please sign in to comment.