![Node.js Takes Steps Towards Removing Corepack](https://cdn.sanity.io/images/cgdhsj6q/production/5fa307ef6135347f38e009b4da8cebcb3b9a386a-1948x1336.png?w=400&fit=max&auto=format)
Security News
Node.js Takes Steps Towards Removing Corepack
Node.js is taking steps towards removing Corepack from its distribution, aiming for changes in the next major release.
react-native-confirmation-code-field
Advanced tools
A react-native component to input confirmation code for both Android and IOS
Changelog
4.1.0
onTextChange => onChangeText
#81inputProps
(Flow.js & TS)Readme
A react-native confirmation code field compatible with iOS, Android and Web Platforms (based on this project Migration Guide)
blur()
and focus()
methods;yarn add react-native-confirmation-code-field
# or
npm install react-native-confirmation-code-field
import React, { useCallback } from 'react';
import CodeInput from 'react-native-confirmation-code-field';
export const App = () => {
const handlerOnFulfill = useCallback(code => console.log(code), []);
return <CodeInput onFulfill={handlerOnFulfill} />;
};
Paste code can helpful for Android platform when you can read SMS.
import React, { Component, createRef } from 'react';
import CodeInput from 'react-native-confirmation-code-field';
class App extends Component {
handlerOnFulfill = code => {
if (isValidCode(code)) {
console.log(code);
} else {
this.clearCode();
}
};
field = createRef();
clearCode() {
const { current } = this.field;
if (current) {
current.clear();
}
}
pasteCode() {
const { current } = this.field;
if (current) {
current.handlerOnTextChange(value);
}
}
render() {
return <CodeInput ref={this.field} onFulfill={this.handlerOnFulfill} />;
}
}
This component consists of:
<View {...containerProps}/>
;<TextInput {...cellProps} />
);<TextInput {...inputProps}/>
;FAQs
A react-native component to input confirmation code for both Android and IOS
The npm package react-native-confirmation-code-field receives a total of 59,031 weekly downloads. As such, react-native-confirmation-code-field popularity was classified as popular.
We found that react-native-confirmation-code-field demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Node.js is taking steps towards removing Corepack from its distribution, aiming for changes in the next major release.
Security News
OpenSSF has released a guide to help package repositories adopt Trusted Publishers, which enhances security by using short-lived identity tokens for authentication, reducing the risks associated with long-lived secrets.
Employee Spotlight
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.