模板版本:v0.2.2
[!TIP] Gitee 地址
npm install @tuya-oh/react-native-dash@file:#
yarn add @tuya-oh/react-native-dash@file:#
快速使用:
import React, { Component } from "react";
import { AppRegistry, StyleSheet, Text, View } from "react-native";
import Dash from 'react-native-dash';
export default function App() {
return (
return <Dash style={{width:100, height:1}} />
)
}
在以下版本验证通过
- RNOH:0.72.50; SDK:HarmonyOS 5.0.1.115; IDE:DevEco Studio 5.0.7.200; ROM:5.0.0.135;
[!TIP] "Platform"列表示该属性在原三方库上支持的平台。
[!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
Name | Description | Type | Required | Platform | HarmonyOS Support |
---|---|---|---|---|---|
style | Dash container style | View.PropTypes.Style |
No | All | YES |
dashGap | Gap between two dashes | number |
No | All | YES |
dashLength | Length of each dash | number |
No | All | YES |
dashThickness | Thickness of each dash | number |
No | All | YES |
dashColor | Color of each dash | string |
No | All | YES |
dashStyle | Dashes style | View.PropTypes.Style |
No | All | YES |
本项目基于 The MIT License (MIT) ,请自由地享受和参与开源。