Typescript generic Promise with React-Native Image Picker
Clash Royale CLAN TAG #URR8PPP Typescript generic Promise with React-Native Image Picker I am learning react-nativv v0.56 and the react community's react-native-image-picker (this). I am trying to implement he image picker on iOS using TypeScript . A followed all the install instruction, and got an error. Now I am trying to implement it using Promise s. Here is what I was trying and not got any error in the console debugger. Here is my experimental code: import * as React from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Image, ImageSourcePropType, ImageURISource } from 'react-native'; import { Navigation } from 'react-native-navigation'; import Icon from 'react-native-vector-icons/FontAwesome'; import ImagePicker from 'react-native-image-picker'; import { ScreenID } from '../screenID' export interface IWelcomeScreenProps { navigator: Navigator; componentId: string; } export interface IWelcomeScreenState { picked...