TypeScript

Reactコンポーネントの定義にFCではなくVFCを使う

[RFC] React 18 and types-only breaking changes · Issue #46691 · DefinitelyTyped/DefinitelyTyped [@types/react] add VoidFunctionComponent type which does not accept "children" by awmottaz · Pull Request #46643 · DefinitelyTyped/DefinitelyTy…

React NativeとTypeScript 3.1の相性が悪い

相性が悪いというかStyleSheet.create周りで型エラーになってしまう。 github.com github.com Bugラベルは付けられていて、TypeScript 3.2を待つ必要がありそう。