mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Set duration=0 for android keyboard events (#24994)
Summary: Set duration=0 for android keyboard events. Brings actual implementation closer to existing flowtypes, and duration is set to 0 to minimize impact on existing keyboard event consumers. Follow up to #24947, upon cpojer's [input](https://github.com/facebook/react-native/pull/24947#issuecomment-494681618) :) ## Changelog [Android] [Added] - Set duration=0 for android keyboard events Pull Request resolved: https://github.com/facebook/react-native/pull/24994 Differential Revision: D15449394 Pulled By: cpojer fbshipit-source-id: d43096238bd38d189fbec54fc2d93f17010d9ddb
This commit is contained in:
committed by
Facebook Github Bot
parent
de33b8a237
commit
cea0a2b61a
@@ -770,6 +770,7 @@ public class ReactRootView extends FrameLayout implements RootView, ReactRoot {
|
||||
|
||||
keyboardEventParams.putMap("endCoordinates", endCoordinates);
|
||||
keyboardEventParams.putString("easing", "keyboard");
|
||||
keyboardEventParams.putDouble("duration", 0);
|
||||
return keyboardEventParams;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user