1.0.6 • Published 6 years ago

@blankapp/ui v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

@blankapp/ui

Build Status npm version npm Join the chat at https://gitter.im/blankapp/ui

Table of Contents

Created by gh-md-toc

Introduction

Highly customizable and theming components for React Native

Browse the docs on blankapp.org or try it out on our live demo.

Features

  • Lightly dependency, very little dependency
  • Global theming, a variety of style selector implementation
  • Rich base components
  • Friendly API design

Live Demo

Live Demo

Quick Start

Prerequisites

Before starting make sure you have:

Installation

Create a new React Native App:

$ react-native init HelloWorld
$ cd HelloWorld

Install @blankapp/ui and link in your project:

$ yarn add @blankapp/ui

Now, simply copy the following to your index.ios.js file of React Native project:

import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import {
  ThemeProvider,
  Screen,
  Text,
} from '@blankapp/ui';

class Examples extends Component {
  render() {
    return (
      <ThemeProvider>
        <Screen>
          <Text>Hello World</Text>
        </Screen>
      </ThemeProvider>
    );
  }
}

AppRegistry.registerComponent('Examples', () => Examples);

Run the new app

  • Running on Android:
$ react-native run-android
$ adb reverse tcp:8081 tcp:8081   # required to ensure the Android app can
  • Running on iOS:
$ react-native run-ios

Discussion

If you have any suggestions or questions about this project, you can discuss it by Gitter or my private wechat.

npm.io

License

MIT License

Copyright (c) 2017 JianyingLi <lijy91@foxmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago