Changeset View
Changeset View
Standalone View
Standalone View
native/account/registration/registration-context.js
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
export type RegistrationContextType = {}; | import type { RegistrationServerCallInput } from './registration-types.js'; | ||||
export type RegistrationContextType = { | |||||
+register: RegistrationServerCallInput => Promise<void>, | |||||
}; | |||||
const RegistrationContext: React.Context<?RegistrationContextType> = | const RegistrationContext: React.Context<?RegistrationContextType> = | ||||
React.createContext<?RegistrationContextType>(); | React.createContext<?RegistrationContextType>(); | ||||
export { RegistrationContext }; | export { RegistrationContext }; |