@tuya-oh/react-native-dash
TypeScript icon, indicating that this package has built-in type declarations

0.0.11-0.0.1 • Public • Published

模板版本:v0.2.2

react-native-dash

Supported platforms License

[!TIP] Gitee 地址

安装与使用

npm

npm install @tuya-oh/react-native-dash@file:#

yarn

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}} />
    )
}

约束与限制

兼容性

在以下版本验证通过

  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 的效果。

Props

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) ,请自由地享受和参与开源。

Package Sidebar

Install

npm i @tuya-oh/react-native-dash

Weekly Downloads

11

Version

0.0.11-0.0.1

License

MIT

Unpacked Size

9.97 kB

Total Files

7

Last publish

Collaborators

  • kaworu-nagisa
  • carry5250
  • wanghuabin
  • liufenling
  • inkmu