アドベントペアプロ #7 react-native
ファシリテータ: @ggtmtmgg セクリタリ: @ggtmtmgg 参加者: @saitoxu レポジトリ: https://github.com/facebook/react-native Issue: https://github.com/facebook/react-native/issues/20410
前回: https://hackmd.io/3bjDo5SDSvW9rnR-gKieow
spyOn
jestのspyOnが便利 spyOnをつかって、特定の関数が呼ばれるかをテストしたり、test中だけ実装を入れ替えたりできる。
... "flow": "flow", "flow-check-ios": "flow check", "flow-check-android": "flow check --flowconfig-name .flowconfig.android", ...
後でPR送る(@saitoxu)
React.
... // $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet. ViewToExport = React.forwardRef(View); ...
Reactv16.6.3では引数の型が定義されているので、おそらくコメントアウトごと消せば良い。 https://github.com/facebook/react/tree/v16.6.3
よくわからないので質問する https://github.com/facebook/react-native/issues/22595