akveo / kittenTricks

React Native starter kit with over 40 screens and modern Light and Dark theme for creating stunning cross-platform mobile applications.
https://akveo.github.io/react-native-ui-kitten/
MIT License
7.17k stars 986 forks source link

Argument of type 'null' is not assignable to parameter of type 'MappingContextValue' #299

Open simonsheng opened 4 years ago

simonsheng commented 4 years ago

💬 Question

I am new to typescript and trying to lear our code step by step. I use react-native init to create a project and type 'them.service.ts'. But my vscode always complain 'Argument of type "null" is not assignable to parameter of type "MappingContextValue'.

I googled and people mentioned: 'restrict null check'. but how can I disable the check. I tried to configure tslint.json etc.

npx react-native --version : 4.10.1