import * as React from 'react' ; import { IData } from './IData' ; import { STATUS_BAR_HEIGHT } from './Constants' ; export interface SuggesterContextParam { values ? : { [ name ] : string ; } ; statusBarHeight ? : number ; backgroundColor ? : string ; setMarginTopAsync ? ( marginTop ) : Promise < void > ; setValueAsync ? ( name , value ) : Promise < void > ; handleFocusProvider ? ( ) : void ; setDataAsync ? ( name , data ) : Promise < void > ; handleBlurProvider ? ( ) : void ; setPaddingHorizontalAsync ? ( paddingVertical ) : Promise < void > ; } export const SuggesterContext = React . createContext < SuggesterContextParam > ( { statusBarHeight : STATUS_BAR_HEIGHT , } ) ;