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:
nossbigg
2019-05-22 05:33:22 -07:00
committed by Facebook Github Bot
parent de33b8a237
commit cea0a2b61a
2 changed files with 2 additions and 0 deletions
@@ -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;
}
}