
Eli WhiteandFacebook Github Bot
2bd503285e
Update View Config generator to create command methods
Summary:
Flow types like this:
```
interface NativeCommands {
+hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
}
export const Commands = codegenNativeCommands<NativeCommands>();
```
get turned into this:
```
export const Commands = {
hotspotUpdate(viewRef: React.Ref<'RCTView'>, x: number, y: number) {
UIManager.dispatchViewCommand(
findNodeHandle(viewRef),
UIManager.getViewManagerConfig('RCTView').Commands.hotspotUpdate,
[x, y]
);
}
}
```
Reviewed By: rickhanlonii
Differential Revision: D15953126
fbshipit-source-id: edbb91056347d021dd0683391c903b76f3d1c33f
2019-06-24 18:54:41 -07:00
..
2019-05-08 08:48:59 -07:00
2019-06-11 05:06:42 -07:00
2019-05-20 02:52:37 -07:00
2019-05-20 18:05:54 -07:00
2019-05-08 08:48:59 -07:00
2019-03-06 14:57:30 -08:00
2018-11-04 11:03:09 -08:00
2018-09-11 15:33:07 -07:00
2019-06-24 18:54:41 -07:00
2019-06-19 09:56:04 -07:00
2019-05-08 08:48:59 -07:00
2018-11-05 16:15:54 -08:00
2018-09-11 15:33:07 -07:00
2019-05-08 08:48:59 -07:00
2019-05-29 16:37:15 -07:00
2019-05-29 16:37:15 -07:00
2019-05-08 08:48:59 -07:00
2019-05-08 08:48:59 -07:00
2018-09-11 15:33:07 -07:00
2019-06-24 13:54:40 -07:00
2019-05-08 08:48:59 -07:00
2019-06-21 09:02:47 -07:00
2019-02-20 18:22:44 -08:00
2018-09-11 15:33:07 -07:00
2019-05-22 03:27:54 -07:00
2018-09-11 15:33:07 -07:00
2018-09-11 15:33:07 -07:00
2018-12-03 00:07:02 -08:00
2018-09-11 15:33:07 -07:00
2019-05-30 07:45:16 -07:00
2019-05-23 00:51:31 -07:00
2019-05-23 00:51:31 -07:00
2019-05-30 14:29:42 -07:00
2019-05-30 14:29:42 -07:00
2019-05-08 08:48:59 -07:00
2019-05-08 08:48:59 -07:00
2019-06-18 23:10:50 -07:00
2019-06-18 23:10:50 -07:00
2019-05-08 08:48:59 -07:00
2018-12-03 00:07:02 -08:00
2019-05-08 08:48:59 -07:00
2019-06-19 09:56:04 -07:00
2018-09-11 15:33:07 -07:00
2019-05-08 08:48:59 -07:00
2018-09-11 15:33:07 -07:00
2018-09-11 15:33:07 -07:00
2019-06-17 11:29:45 -07:00
2019-02-05 02:24:59 -08:00