项目
在 GitHub 查看
exzos28/react-native-qr-svg
关于
Stylish QR codes for React Native and the web that still scan: rounded, liquid, dots, gradients, custom eyes and logos.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文QR codes for React Native and the web, drawn with react-native-svg. Style them freely without giving up the one thing a QR code must do: scan.
- Seamless shapes.
rounded,liquid,square,dotsandtriangle. Connected modules are traced as one outline: no hairline seams, half the path data. - Custom eyes and colors. Square, rounded or circle finder patterns in their own colors, gradients, gaps, quiet zone and logos.
- Scannable by default. A test suite decodes every built-in style with a real QR decoder. The defaults keep finder patterns solid and raise error correction for logos, and development warnings catch logos or styles that may not scan.
- Lightweight. Pure JavaScript with one small dependency: works in Expo Go and on the web.
- Not only React. The same code renders to an SVG string for servers, sharing or saving to a file.
Getting started
Install it in a bare React Native app or with Expo by following Installation, then style your first code in the Playground, which shows the props for every option you pick.
Documentation
| Styling | Shapes, gaps, eyes, colors and gradients, size and quiet zone |
| Logos | Logos that still scan, and how big they can be |
| Scannability | What the scan tests check and what the defaults do for you |
| SVG without React | qrCodeToSvgString and encodeQr for servers, sharing and other renderers |
| Custom renderer | Draw every module yourself |
| Migrating to 2.1 · Troubleshooting | |
| API reference | Every prop and function |
Example apps
apps/rn-cli-example (bare React Native) and apps/expo-example (Expo Go, development build and web) show the same interactive demo. See CONTRIBUTING.md to run them.
Contributing
Issues and pull requests are welcome. CONTRIBUTING.md covers the monorepo, tests and releases.
License
探索相关项目
加载中…