Skip to content

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

Open
@simonsheng

Description

@simonsheng

💬 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions