This project adheres to Semantic Versioning.
🚨 BREAKING CHANGES:
- React 19 required
- Remove deprecated
StyleSheet.absoluteFillObject
Other:
- Eslint flat config
- Example app was updated to RN
0.84.x - Update
devDependencies - Yarn
4.13.0
- support React Compiler (perf. optimisation)
- add
.webextension for platform specific code (reduce a bundle size) - No anonymous functions (better debugging)
- update an example app examples/DemoCodeField
- Fix a "clearInterval called with an invalid handle" error, see: #245, thanks @fcaldarelli
- Fix typescript error
Type Error: 'Cursor' cannot be used as a JSX component
- Add
autoCompleteprop by default, forCodeFieldcomponent #239
- Fix disabled field by default on iOS after enabling the new architecture #230
- Add a new property
InputComponent?: ComponentType#193, thanks @muslumsezgin
- Mark all
peerDependenciesas optional
- Fix
warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.on WEB #171, #175
- Support react-native 0.64.x and above only!!!
- Remove a
crazyworkaround for listening to user taps on the<TextInput/>component - Optimize a bundle size
- Export
CodeFieldPropsandRenderCellOptionstypes
- Fix
warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.on WEB #171, #175
- Revert previous fix (6.5.0) to solve an issue #153
- Fix copy\paste menu appearing when
caretHidden={true}andvalue={''}#140, thanks @sprotymo
- A module was adapted for old react-native versions (now you can use a 6 version for old that 0.62.x)
- Publish a compatible bundle for react-native-web
- Fixed typescript issue #127
- Added support of react native 0.62.x
New release, requirements react>=16.4.0 & react-native:>=0.59.0
- stateless component and new API (see docs)
- rewrited on TypeScript
- deprecated
onFulfilluseonChangeTextinstead of it:
const CELL_COUNT = 6;
<CodeField
cellCount={CELL_COUNT}
onChangeText={(value) => {
if (value.length === CELL_COUNT) {
onFulfill(value);
}
}}
/>;- Add more controls on mask symbol component, inspired by 91
- Fix android cursor alignment bug #94. Thanks @necipallef
- Fix problem with inherit method, rename
onTextChange => onChangeText#81 - Updated type of prop
inputProps(Flow.js & TS) - Release diff on npmfs.com
- Fix problem with focus on Inputs #78
- Fix problem when cursor inherit
<Cell/>styles #72
- Simulate
secureTextEntry#62 - Reduce package size
- Add new prop
blurOnSubmit?: boolean#62 by leozzitowned
- Add new prop
CellComponent?: ComponentType, it can be useful for create some animations Example
- Added support for
react-native-web#50
- Fix onPress event handler #45
- Update typings #43 index.d.ts
- Add example how work with
paste()andclean()to README.md #43 README.md - Recreate example for RN@0.59
- Update
devDependencies
- Fix issue about
testID#38
- Fix Flow.js error for support
react-native@0.58#33
- Fix
autoFucusprop #32
- Fix iOS borderBottom style #28
- Remove base implementation based on
One code cell===One TextInput - Fix iOS fast paste SMS code
- Update
inputProps: Functionprop, now isinputProps: ?Object - Remove
canPasteCode, now it is works always by default - Remove
inputStyle: FunctionusecellProps - Remove
onChangeTextuseinputProps={{onChangeText: (text) => {}}} - Remove some
variantvalues:border-b-tandborder-l-r - Add new component
focus()andblur()methods - Fix typescript definition #27
- Fix typescript definition #27
- Fix Flow.js types
- Fix spread non-iterable instance #24
- Update TypeScript definition changes
- New example for RN 0.57 version
- Merged changes from
1.2.1version - Update dependencies
RN@0.57 - Fixed extreme
<TextInput>slowness (5017b86 by @gnprice) - Remove
ignoreCaseWhenCompareCodeandcompareWithCodeprops. - Add paste support. By default it's disabled. That would enable set
canPasteCode={true} - Rename property
getInputProps=>inputProps - Rename property
getInputStyle=>inputStyle - Remove iOS hack for
onKeyPress(use latest RN version) - Remove
INDEXtyping - Fix desynchronization
onFocusandsetState#16
- Fix desynchronization
onFocusandsetState#16
- Add export for types #10
- Add new prop
maskSymbol?: string#6
-
Rename
ignoreCase=>ignoreCaseWhenCompareCodeproperty -
Rename
className=>variantproperty -
Add new methods (
getInputStyle()andgetInputProps()_ for help users to customize inputs -
Add new property
containerProps,testID -
Add
clear()method to TypeScript definition #21 -
Fix slowly focus change 10
-
Fix iOS input bag. #38
- Fork dead repository
