問題タブ [flow-js]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
reactjs - flowjs で React-Native SectionList を適切に入力する方法
flow-bin 0.158.0 を使用して、React-Native 0.66.1 で SectionList 呼び出しを適切に入力しようとしています。
次のコードがあります。
flowjs チェックを実行すると、20 個のエラーが発生します。
エラーは私をここに指しています :
そこの SectionBase 定義には、key、renderItem、ItemSeparatorComponent、および KeyExtractor がすべてオプションに設定されています。
では、セクション プロップの正しい型定義は何でしょうか?