In my react-native application I have a TextInput
component. The TextInput
reads some types from the following path:
/Users/karl/Library/Caches/typescript/3.6/node_modules/@types/react-native/index.d.ts
This file has a bunch of types in including:
export type KeyboardType = 'default' | 'email-address' | 'numeric' | 'phone-pad';
I can access this file by cmd + clicking
on a prop I have added, (using vscode) to go to it's definition.
What I am wondering though is how I can reference the types in this file, so I can use them in my Flow typing definitions?
I want to be able to do something like:
// pseudocodeimport type { KeyboardType } from 'react-native'
How I can go about this?