Within my react-native application, there is a TextInput
component that reads various types from the following directory path:
/Users/karl/Library/Caches/typescript/3.6/node_modules/@types/react-native/index.d.ts
This file contains multiple types, one of which is:
export type KeyboardType = 'default' | 'email-address' | 'numeric' | 'phone-pad';
To access this file, I can simply use cmd + clicking
on a specific prop I have added (using vscode) to view its definition.
My query now revolves around referencing these types in the said file in order to utilize them within my Flow typing definitions.
I wish to achieve something similar to the following pseudocode snippet:
// pseudocode
import type { KeyboardType } from 'react-native'
Any guidance on how I can accomplish this task?