
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-fast-qrcode
Advanced tools
A customizable QRCode component for React Native, built with react-native-svg and qrcode .
✨ Features:
✅ Basic QR code rendering
🎨 Custom styles: square, circle, diamond, rounded
🌈 Gradient fill
🖼️ Logo overlay in center
🎯 Custom finder patterns (color, rounded corners)
yarn add react-native-fast-qrcode react-native-svg qrcode
# or
npm install react-native-fast-qrcode react-native-svg qrcode
import { View, StyleSheet, ScrollView } from 'react-native';
import { QRCode } from 'react-native-fast-qrcode';
export default function App() {
return (
<ScrollView>
<View style={styles.container}>
{/* Basic QR */}
<QRCode value="https://example.com1" size={200} ecl="M" />
{/* Circle style + gradient */}
<QRCode
value="https://example.com2"
size={200}
style="circle"
gradient={{ from: '#ff512f', to: '#dd2476', direction: 'vertical' }}
/>
{/* Diamond style + logo */}
<QRCode
value="https://example.com3"
size={220}
style="diamond"
color="#0072ff"
// logo={require('./assets/logo.png')}
logoSize={50}
/>
{/* Rounded + finder pattern custom */}
<QRCode
value="https://example.com4"
size={240}
style="rounded"
cornerRadius={6}
finderColor="#ff5722"
finderRadius={8}
gradient={{ from: '#43cea2', to: '#185a9d', direction: 'horizontal' }}
// logo={require('./assets/logo.png')}
logoSize={50}
backgroundColor="white"
/>
</View>
</ScrollView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
gap: 50,
marginTop: 100,
},
});
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | required | Nội dung sẽ được encode trong QR Code |
| size | number | 200 | Kích thước QR code (chiều rộng & cao) |
| color | string | black | Màu của các ô QR |
| backgroundColor | string | white | Màu nền phía sau QR |
| ecl | 'L' | 'M' | 'Q' | 'H' | 'M' | Mức độ Error Correction Level (sửa lỗi khi scan) |
| style | 'square' | 'circle' | 'diamond' | 'rounded' | 'square' | Hình dạng module QR |
| cornerRadius | number | 4 | Độ bo góc (áp dụng khi style="rounded") |
| gradient | { from: string; to: string; direction?: 'vertical' | 'horizontal' } | undefined | Gradient fill cho module QR |
| logo | string | number | undefined | Logo ở giữa QR (hỗ trợ require() hoặc URL ảnh) |
| logoSize | number | 40 | Kích thước logo (width & height) |
| finderColor | string | same as color | Màu Finder Pattern (3 ô vuông lớn của QR code) |
| finderRadius | number | 0 | Bo góc cho Finder Pattern |
FAQs
Support for QRCode
We found that react-native-fast-qrcode 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.