0.1.1 • Published 1 year ago

@ray-js/components-ty-loading v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

English | 简体中文

@ray-js/components-ty-loading

latest download

Tuya Ray Loading

Installation

$ npm install @ray-js/components-ty-loading
# or
$ yarn add @ray-js/components-ty-loading

Usage

Basic Usage

import React from 'react';
import { View, Text } from '@ray-js/components';
import Loading from '@ray-js/components-ty-loading';

export default function Home() {
  return (
    <View>
      <Loading />
    </View>
  );
}

Custom Color

import React from 'react';
import { View, Text } from '@ray-js/components';
import Loading from '@ray-js/components-ty-loading';

export default function Home() {
  return (
    <View>
      <Loading color="red" />
    </View>
  );
}

Custom Size

import React from 'react';
import { View, Text } from '@ray-js/components';
import Loading from '@ray-js/components-ty-loading';

export default function Home() {
  return (
    <View>
      <Loading size="100rpx" />
    </View>
  );
}