1.0.0-beta.1.4.16 • Published 1 year ago

react-native-beauty-design v1.0.0-beta.1.4.16

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

Beauty UI

The objective of this project is to create a complete and advanced framework such as Antd for the web, I want to be able to offer a set of reusable components that are native and beautiful in such a way that we all love to use it in our projects

Documentation

Documentation under construction, launch scheduled for November 30, 2022.

Installation

npm install react-native-beauty-design

Usage

Make sure you have react-native>=0.65.0

Components Previews

Code Example

import {
  Button,
  Space,
  SpaceItem,
  Text,
  DesignProvider,
} from 'react-native-ui-components';

const configProviderUI = {
  colors: {
    magenta: '#E5097F',
    orangered: '#ff4500',
    green: '#00FF00',
    purple: '#800080',
  },
};

export default function App() {
  return (
    <DesignProvider initialState={configProviderUI}>
      <ScrollView contentContainerStyle={styles.view}>
        <View style={styles.container}>
          <View>
            <Text>Buttons</Text>
            <Text level={4}>Default buttons</Text>
            <Space justify="center">
              <Button>Primary</Button>
              <Button color="success">Success</Button>
              <Button type="link" color="warning">
                Warning
              </Button>
              <Button type="outline" color="error">
                Error
              </Button>
            </Space>
          </View>
          <View>
            <Text level={4}>Circle buttons</Text>
            <Space justify="center">
              <Button shape="circle">Primary</Button>
              <Button shape="circle" color="success">
                Success
              </Button>
              <Button type="link" shape="circle" color="warning">
                Warning
              </Button>
              <Button type="outline" shape="circle" color="error">
                Error
              </Button>
            </Space>
          </View>
          <View>
            <Text level={4}>Custom color buttons</Text>
            <Space justify="center">
              <Button color="magenta">Magenta</Button>
              <Button color="orangered">Orangered</Button>
              <Button color="green">Green</Button>
              <Button color="purple">Purple</Button>
            </Space>
          </View>
        </View>
      </ScrollView>
    </DesignProvider>
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT