Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@raiden16f7/react-native-alphabet-list
Advanced tools
React Native Alphabet List Component use reanimated 2 library with refresh control
Fork of @nghinv/react-native-alphabet-list
yarn add @raiden16f7/react-native-alphabet-list
or
npm install @raiden16f7/react-native-alphabet-list
yarn add react-native-gesture-handler react-native-reanimated react-native-redash react-fast-compare
Setup react-native-gesture-handler and reanimated according to their docs.
import React, { useState, useCallback } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import AlphabetList from '@raiden16f7/react-native-alphabet-list';
import { Alphabet } from '@raiden16f7/react-native-alphabet-list/utils';
import { CharType, ItemType } from '@raiden16f7/react-native-alphabet-list/types';
const DATA: Array<{ name: string, key: CharType }> = [];
Alphabet.forEach(char => {
const random = Math.round(8 * Math.random());
if (random > 0) {
for (let i = 0; i < random; i++) {
const contact = `${char.toLocaleUpperCase()} - Contact ${i + 1}`;
DATA.push({
name: contact,
key: char as CharType,
});
}
}
});
function App() {
const renderItem = ({ item }: ItemType) => {
return (
<View style={styles.viewContent}>
<Text style={styles.txtContent}>{item.name}</Text>
</View>
);
};
return (
<View style={styles.container}>
<AlphabetList
data={DATA}
renderItem={renderItem}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingVertical: 24,
},
viewContent: {
paddingRight: 16,
paddingLeft: 40,
marginBottom: 24,
},
txtContent: {
fontSize: 16,
color: 'white',
},
});
export default App;
Property | Type | Default | Description |
---|---|---|---|
style | ViewStyle | undefined | |
contentContainerStyle | ViewStyle | undefined | |
indexStyle | ViewStyle | undefined | |
data | Array<{ key: string, [key string]: any }> | undefined | |
renderHeader | (header: string) => React.ReactNode | undefined | |
renderItem | ({ item, index }) => React.ReactNode | undefined | |
showAllHeader | boolean | false | |
trackSize | number | 18 | |
trackColor | string | white | |
charHeight | number | 20 | |
trackScale | number | 1.5 | |
lineWidth | number | 20 | |
trackScale | number | 1.5 | |
textColorActive | string | tomato | |
textInactiveColor | string | white | |
headerTitleColor | string | white | |
charStyle | TextStyle | undefined | |
headerTitleStyle | TextStyle | undefined | |
headerStyle | ViewStyle | undefined | |
refreshControl | RefreshControl | undefined |
FAQs
React Native Alphabet List
We found that @raiden16f7/react-native-alphabet-list 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.