rjcm-test-ui
v0.1.2
Published
Biblioteca de testes
Downloads
11
Readme
Ui lib test
Installation
npm i rjcm-test-ui
yarn add rjcm-test-ui
import React from 'react';
import colorScheme from '@colors'
import * as Typography from 'rjcm-test-ui/core/typography';
export default MyScreen() {
return (
<Typography.H1 theme={colorsScheme}>My Screen<Typography.H1>
)
}
import React from 'react';
import colorScheme from '@colors'
import * as Typography from 'rjcm-test-ui/core/typography';
interface UiTextProps {
type: keyof typeof Typography;
children: React.ReactNode;
}
export default UiText({ children, type }: UiTextProps) {
const Component = Typography[type]
return (
<Component theme={colorsScheme}>{children}<Component>
)
}