# mjui

> A enhanced UI library with react-native

Latest version **0.0.8** (published 2017-06-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install mjui
pnpm add mjui
yarn add mjui
bun add mjui
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2017-06-12 |
| First published | 2017-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aggie123 |
| Maintainers | aggie |
| Keywords | ui, react-native, library |

## Links

- npm: https://www.npmjs.com/package/mjui
- Repository: https://git.n.xiaomi.com:miot_shop/mjui
- Homepage: https://github.com/Aggie123/npm-demo#readme
- Issues: http://git.n.xiaomi.com/miot_shop/mjui/issues
- npm.io page: https://npm.io/package/mjui

## Dependencies (3)

- [react](https://npm.io/package/react.md) 16.0.0-alpha.6
- [react-native](https://npm.io/package/react-native.md) 0.44.0
- [react-native-scrollable-tab-view](https://npm.io/package/react-native-scrollable-tab-view.md) ^0.6.6

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2017-06-12
- 0.0.7 — 2017-06-06
- 0.0.5 — 2017-06-01
- 0.0.4 — 2017-05-16
- 0.0.3 — 2017-05-16
- 0.0.2 — 2017-05-16
- 0.0.1 — 2017-05-16

## README

# mjui
mjui is a enhancd ui component library for react native.

##Content

- [Getting Started](#getting-started)
- [Basic Usage](#basic-usage)
- [Example](#example)

## Getting Started

1. run npm install mjui
2. import mjui from 'mjui'

## Basic Usage

```
'use strict';

import React from 'react';
import {
    StyleSheet,
    View,
    Text,
} from 'react-native';
import { Toast, Button } from 'mjui';

import BasePage from '../_base/BasePage';

const styles = StyleSheet.create({
    container: {
        paddingTop: 20,
        backgroundColor: '#fff'
    },
});

class ButtonScreen extends BasePage {
    showToast() {
        Toast.show('Oops, U pressed me!');
    }

    render() {
        return (
            <View style={styles.container}>
                <Text>Button Type:</Text>
                <View style={{ flexDirection: 'row', marginTop: 10 }}>
                    <Button onPress={this.showToast} text={'default'} type={'default'} containerStyle={{ marginLeft: 10 }} />
                    <Button onPress={this.showToast} text={'warn'} type={'warn'} containerStyle={{ marginLeft: 10 }} />
                    <Button onPress={this.showToast} text={'sec'} type={'sec'} containerStyle={{ marginLeft: 10 }} />
                    <Button onPress={this.showToast} text={'thr'} type={'thr'} containerStyle={{ marginLeft: 10 }} />
                </View>
            </View>
        );
    }
}

export default ButtonScreen;

```

## Example
[mjuiExample](http://git.n.xiaomi.com/miot_shop/mjui_example)

---
_Source: https://npm.io/package/mjui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
