
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@capitual/react-native-android-pin-authentication
Advanced tools
Android authentication pin adapter to React Native.
npm install @capitual/react-native-android-pin-authentication
import React from 'react';
import { TouchableOpacity, View, Text, Alert, StyleSheet } from 'react-native';
import {
authenticatePinAndroid,
isAvailablePin,
} from '@capitual/react-native-android-pin-authentication';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 20,
},
button: {
width: '100%',
height: 64,
borderRadius: 8,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'black',
marginVertical: 10,
},
text: {
textAlign: 'center',
fontSize: 24,
color: 'white',
},
});
export default function App() {
const handleIsAvailable = async () => {
const success = await isAvailablePin();
if (success) {
Alert.alert('Pin is available');
} else {
Alert.alert('Pin is not available');
}
};
const handleAuthenticate = async () => {
try {
const success = await authenticatePinAndroid();
if (success) {
Alert.alert('Successful Authentication');
} else {
Alert.alert('Authentication Failed');
}
} catch (e) {
Alert.alert('Error Authenticating PIN');
}
};
return (
<View style={styles.container}>
<TouchableOpacity style={styles.button} onPress={handleIsAvailable}>
<Text style={styles.text}>Is available? </Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button} onPress={handleAuthenticate}>
<Text style={styles.text}>Android Authentication</Text>
</TouchableOpacity>
</View>
);
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT License. 🙂
Made with create-react-native-library. 😊
FAQs
Android authentication pin adapter to React Native.
The npm package @capitual/react-native-android-pin-authentication receives a total of 4 weekly downloads. As such, @capitual/react-native-android-pin-authentication popularity was classified as not popular.
We found that @capitual/react-native-android-pin-authentication demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.