react-native 进度条组件
react-native-progress
安装
npm install react-native-progress --save
这点很重要:将ART.xcodeproj
(找到node_modules/react-native/Libraries/ART
)添加到Libraries组,并在Build Phases下添加libART.a
到Link Binary With Libraries,(打开Xcode,找到Libraries下的ART点击添加新文件,在上面的路径中找到node_modules/react-native/Libraries/ART)
import * as Progress from 'react-native-progress'; <Progress.Bar progress={0.3} width={200} /> <Progress.Pie progress={0.4} size={50} /> <Progress.Circle size={30} indeterminate={true} /> <Progress.CircleSnail color={['red', 'green', 'blue']} />
下面就简单了。

更多精彩