This package has been deprecated

Author message:

please use @ray-js/components-ty-config-provider instead

@ray-js/components-ty-theme-provider
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

English | 简体中文

@ray-js/components-ty-theme-provider

latest download

Theme Config Provider.

Installation

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

Usage

import Theme, { useTheme } from '@ray-js/components-ty-theme-provider';

const Button = () => {
  const theme = useTheme()
  return <View style={{ background: theme?.global?.background }}>Click</View>
}

export default () => <Theme theme={{ background: 'blue' }}>
  <Button />
</Theme>

Readme

Keywords

none

Package Sidebar

Install

npm i @ray-js/components-ty-theme-provider

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

106 kB

Total Files

87

Last publish

Collaborators

  • tuyafe