# vant-react-native **Repository Path**: osAce/vant-react-native ## Basic Information - **Project Name**: vant-react-native - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-07-30 - **Last Updated**: 2022-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # `vant-react-native` [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/) [![MIT License](https://img.shields.io/badge/License-MIT-orange.svg)](https://opensource.org/licenses/MIT) ## Install ```sh yarn add vant-react-native ``` Or ```sh npm install vant-react-native ``` ## Usage ```tsx import React, { Component } from 'react'; import { View, Text, SafeAreaView, ScrollView } from 'react-native'; import { Icon } from 'vant-react-native'; type IconNameType = React.ComponentProps['name']; export default class IconList extends Component { render() { return ( {data.map((item, index) => { const paddingLength = data.length % 4 || 4; return ( {item} ); })} ); } } const data: IconNameType[] = [ 'location-o', 'like-o', 'star-o', 'phone-o', 'setting-o', 'fire-o', 'coupon-o', 'cart-o', 'shopping-cart-o', 'cart-circle-o', 'friends-o', 'comment-o', 'gem-o', 'gift-o', 'point-gift-o', 'send-gift-o', 'service-o', 'bag-o', 'todo-list-o', 'balance-list-o', 'close', 'clock-o', 'question-o', 'passed', ]; ``` ## Debug ```sh # 构建所有包 $ yarn build # 调试要开发的包 $ yarn workspace @vant-react-natives/button run dev ```