Files
react-native/Libraries
Eli White 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-20 18:05:55 -07:00
2019-06-24 09:48:57 -07:00
2019-06-21 11:42:17 -07:00
2019-06-21 10:59:09 -07:00
2019-06-03 23:03:41 -07:00
2019-06-06 11:34:11 -07:00
2019-05-13 11:43:49 -07:00
2019-06-24 02:59:31 -07:00
2019-06-23 10:03:54 -07:00
2019-06-07 06:39:28 -07:00