Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 3.19 KB

File metadata and controls

41 lines (27 loc) · 3.19 KB

Migrate to this version

autoFocus property default was true but now is false


It's bad idea:

"This component uses the same props as . Below are additional props for this component:"

Now use new property inputProps, example:

const TextInputPropsObject = {
  returnKeyType: 'done',
};

<CodeInput
  inputProps={TextInputPropsObject}
  // ...
/>;

onFulfill changed the method signature

onFulfill = (code:string) => void

used to be so:

onFulfill = (isValid: boolean, code:string) => void


Deprecated Prop Description
codeInputStyle Use cellProps to set custom style, example
containerStyle Use containerProps to set style, example
ignoreCaseWhenCompareCode and compareWithCode Not supported, use own implementation onFulfill to validate code
className Renamed, use variant