-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
191 changed files
with
2,565 additions
and
3,448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// @flow | ||
|
||
declare module 'react-native-image-picker' { | ||
declare export type Callback = (response: ImagePickerResponse) => mixed | ||
declare export type PhotoQuality = 0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1 | ||
declare export type CameraType = 'back' | 'front' | ||
declare export type MediaType = 'photo' | 'video' | 'mixed' | ||
declare export type AndroidVideoOptions = 'low' | 'high' | ||
declare export type iOSVideoOptions = 'low' | 'medium' | 'high' | ||
declare export type ErrorCode = 'camera_unavailable' | 'permission' | 'others' | ||
|
||
declare export type ImageLibraryOptions = { | ||
selectionLimit?: number, | ||
mediaType: MediaType, | ||
maxWidth?: number, | ||
maxHeight?: number, | ||
quality?: PhotoQuality, | ||
videoQuality?: AndroidVideoOptions | iOSVideoOptions, | ||
includeBase64?: boolean | ||
} | ||
declare export type CameraOptions = { | ||
mediaType: MediaType, | ||
maxWidth?: number, | ||
maxHeight?: number, | ||
quality?: PhotoQuality, | ||
videoQuality?: AndroidVideoOptions | iOSVideoOptions, | ||
includeBase64?: boolean, | ||
durationLimit?: number, | ||
saveToPhotos?: boolean, | ||
cameraType?: CameraType | ||
} | ||
declare export type Asset = { | ||
base64?: string, | ||
uri?: string, | ||
width?: number, | ||
height?: number, | ||
fileSize?: number, | ||
type?: string, | ||
fileName?: string, | ||
duration?: number | ||
} | ||
declare export type ImagePickerResponse = { | ||
didCancel?: boolean, | ||
errorCode?: ErrorCode, | ||
errorMessage?: string, | ||
assets?: Asset[] | ||
} | ||
|
||
declare export function launchCamera(options: CameraOptions, callback: Callback): void | ||
declare export function launchImageLibrary(options: ImageLibraryOptions, callback: Callback): void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @flow | ||
|
||
declare module 'react-native-router-flux' { | ||
declare type FluxRouterProps = {} | ||
declare class Drawer extends React.Component<FluxRouterProps> {} | ||
declare class Router extends React.Component<FluxRouterProps> {} | ||
declare class Scene extends React.Component<FluxRouterProps> {} | ||
declare class Stack extends React.Component<FluxRouterProps> {} | ||
declare class Tabs extends React.Component<FluxRouterProps> {} | ||
|
||
// See ../src/types/routerTypes.js for wrapped versions of: | ||
// Actions | ||
|
||
declare type DontUse = { | ||
useTheEdgeWrapperInstead: true | ||
} | ||
|
||
declare var Actions: DontUse | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.