UNPKG

react-native-flip

Version:
58 lines (47 loc) 1.21 kB
import { ExpoModuleConfig } from './ExpoModuleConfig'; export type SupportedPlatform = 'ios' | 'android' | 'web'; export interface SearchOptions { // Available in the CLI searchPaths: string[]; ignorePaths?: string[] | null; exclude?: string[] | null; platform: SupportedPlatform; // Scratched from project's config flags?: Record<string, any>; } export interface ResolveOptions extends SearchOptions { json?: boolean; } export interface GenerateOptions extends ResolveOptions { target: string; namespace?: string; empty?: boolean; } export type PackageRevision = { path: string; version: string; config?: ExpoModuleConfig; duplicates?: PackageRevision[]; }; export type SearchResults = { [moduleName: string]: PackageRevision; }; export type ModuleDescriptor = Record<string, any>; /** * Represents a raw config from `expo-module.json`. */ export interface RawExpoModuleConfig { /** * An array of supported platforms. */ platforms?: SupportedPlatform[]; /** * iOS-specific config. */ ios?: { /** * Names of Swift native modules classes to put to the generated modules provider file. */ modulesClassNames?: string[]; }; }