Skip to content

Commit

Permalink
Merge pull request jarden-digital#127 from Dimon70007/dg/10322_rn0.61
Browse files Browse the repository at this point in the history
Dg/10322 rn0.61
  • Loading branch information
jeremy-farnault authored Mar 9, 2020
2 parents 9dad1fc + 83051a6 commit 2df556e
Show file tree
Hide file tree
Showing 22 changed files with 953 additions and 556 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ await resetPinCodeInternalStates()
|**`buttonDeleteText`**|Text of the of the button used to delete a previous entry on the PIN panel|`delete`|`false`|`string`|
|**`buttonNumberComponent`**|Button component to be used on the PIN panel to select a character for the PIN|TouchableHighlight button with a number text|`false`|`any`|
|**`callbackErrorTouchId`**|Callback to be used when the TouchID authenticate method throws an error|`console.log('TouchID error', e)`|`false`|`(error: Error) => void`|
|**`customBackSpaceIcon`**|Icon to be used to replace the default backspace one on the PIN screen|`Material back icon`|`false`|`any`|
|**`customBackSpaceIcon`**|Function, that returns custom backspace component to be used to replace the default backspace one on the PIN screen|`Function`|
|**`disableLockScreen`**|Boolean to disable the lock screen|`false`|`false`|`boolean`|
|**`endProcessFunction`**|Function to handle the end of the process|`None`|`false`|`(pinCode: string) => void`|
|**`finishProcess`**|Function to be used when the user enters the right PIN code|Removes the values in AsyncStorage and set the status to `success`|`false`|`(pinCode?: string) => void`|
Expand Down
4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="../src/types.d.ts" />
/// <reference types="react" />
import { PinResultStatus } from "./src/utils";
import * as React from "react";
Expand Down Expand Up @@ -105,14 +104,15 @@ export declare type IProps = {
touchIDSentence?: string;
touchIDTitle?: string;
validationRegex?: RegExp;
passcodeFallback?: boolean;
};
export declare type IState = {
internalPinStatus: PinResultStatus;
pinLocked: boolean;
};
declare class PINCode extends React.PureComponent<IProps, IState> {
static defaultProps: Partial<IProps>;
constructor(props: IProps);
componentWillMount(): Promise<void>;
changeInternalStatus: (status: PinResultStatus) => void;
renderLockedPage: () => JSX.Element;
render(): JSX.Element;
Expand Down
14 changes: 8 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/ApplicationLocked.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export declare type IState = {
timeDiff: number;
};
declare class ApplicationLocked extends React.PureComponent<IProps, IState> {
static defaultProps: Partial<IProps>;
timeLocked: number;
isUnmounted: boolean;
constructor(props: IProps);
Expand Down
Loading

0 comments on commit 2df556e

Please sign in to comment.