react-native-macos/packages
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
..
babel-plugin-inline-view-configs Update View Config generator to create command methods 2019-06-24 18:54:41 -07:00
eslint-config-react-native-community Add a lint rule to disallow Haste imports (#25058) 2019-05-30 07:45:16 -07:00
eslint-plugin-react-native-community Add a lint rule to disallow Haste imports (#25058) 2019-05-30 07:45:16 -07:00
react-native-codegen Update View Config generator to create command methods 2019-06-24 18:54:41 -07:00