Skip to content

uvop/react-platformula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

React components and apis which work for Web, Android and iOS!
simple API and usage in any react project

Usage

  • Install
      npm install --save react-platformula
      # or yarn
      yarn add react-platformula
  • import and use!
    import Block, { getCustom as getCustomBlock } from 'react-platformula/block';
    
    // regular block, which is just like react-native's view
    <Block /> 
    
    // Red block, not exposing or needing extra dependencies!
    const RedBlock = getCustomBlock({
      backgroundColor: 'red',
    });
    
    <RedBlock />