@startupjs/ui
UI components for react-native
Last updated 4 months ago by cray0000 .
MIT · Original npm · Tarball · package.json
$ cnpm install @startupjs/ui 
SYNC missed versions from official npm registry.

startupjs ui

UI components for react-native

Installation

yarn add @startupjs/ui

Configuration

  1. Import UI styles in your root style file styles/index.styl. You can also override any default configuration here (palette, colors, variables, etc.):
@require('../node_modules/@startupjs/ui/styles/index.styl')
$UI = merge($UI, {
  colors: {
    primary: '#4a76a8',
    warning: '#880000'
  },
  Button: {
    heights: {
      xxl: 10u
    },
    outlinedBorderWidth: 2px
  }
}, true)
  1. Install and configure additional modules below:

Collapse

  1. Install library react-native-collapsible
  yarn add react-native-collapsible
  1. Add library to forceCompileModules of your webpack.web.config.js.
  const getConfig = require('startupjs/bundler').webpackWebConfig

  module.exports = getConfig(undefined, {
    forceCompileModules: ['react-native-collapsible']
  })

Icon component

  1. Install library react-native-svg
  yarn add react-native-svg
  1. Link native code
  cd ios && pod install
  1. Usage example
  import { Icon } from '@startupjs/ui'
  import { faCoffee } from '@fortawesome/free-solid-svg-icons'

  export default observer(function Card ({
    return pug`
      Icon(icon=faCoffee size='l')
    `
  })

TextInput

Set cursor color of the input on android for the same view as web and ios in %PROJECT%/android/app/src/res/values/styles.xml.

  <resources>
    <!-- ...other configs... -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
      <item name="android:textColor">#000000</item>
      <!-- sets cursor color -->
      <item name="colorControlActivated">#2962FF</item>
    </style>
    <!-- ...other configs... -->
  </resources>

Usage

import { Button } from '@startupjs/ui'

Additional materials

TODO

  • document themed() HOF and theming overall

Current Tags

  • 0.22.0-canary.0                                ...           canary (4 months ago)
  • 0.26.6                                ...           latest (3 days ago)
  • 0.22.0-alpha.46                                ...           next (4 months ago)

116 Versions

  • 0.26.6                                ...           3 days ago
  • 0.26.5                                ...           4 days ago
  • 0.26.3                                ...           5 days ago
  • 0.26.2                                ...           8 days ago
  • 0.26.0                                ...           8 days ago
  • 0.25.2                                ...           9 days ago
  • 0.25.1                                ...           9 days ago
  • 0.25.0                                ...           11 days ago
  • 0.24.1                                ...           15 days ago
  • 0.24.0                                ...           15 days ago
  • 0.23.53                                ...           15 days ago
  • 0.23.52                                ...           16 days ago
  • 0.23.51                                ...           17 days ago
  • 0.23.50                                ...           19 days ago
  • 0.23.49                                ...           22 days ago
  • 0.23.48                                ...           22 days ago
  • 0.23.47                                ...           25 days ago
  • 0.23.45                                ...           a month ago
  • 0.23.44                                ...           a month ago
  • 0.23.42                                ...           2 months ago
  • 0.23.41                                ...           2 months ago
  • 0.23.40                                ...           2 months ago
  • 0.23.39                                ...           2 months ago
  • 0.23.38                                ...           2 months ago
  • 0.23.34                                ...           2 months ago
  • 0.23.33                                ...           2 months ago
  • 0.23.31                                ...           2 months ago
  • 0.23.30                                ...           3 months ago
  • 0.23.29                                ...           3 months ago
  • 0.23.28                                ...           3 months ago
  • 0.23.27                                ...           3 months ago
  • 0.23.26                                ...           3 months ago
  • 0.23.25                                ...           3 months ago
  • 0.23.24                                ...           3 months ago
  • 0.23.23                                ...           3 months ago
  • 0.23.22                                ...           3 months ago
  • 0.23.20                                ...           3 months ago
  • 0.23.19                                ...           3 months ago
  • 0.23.18                                ...           3 months ago
  • 0.23.17                                ...           4 months ago
  • 0.23.16                                ...           4 months ago
  • 0.23.15                                ...           4 months ago
  • 0.23.10                                ...           4 months ago
  • 0.23.0                                ...           4 months ago
  • 0.22.12                                ...           4 months ago
  • 0.22.11                                ...           4 months ago
  • 0.22.10                                ...           4 months ago
  • 0.22.9                                ...           4 months ago
  • 0.22.6                                ...           4 months ago
  • 0.22.5                                ...           4 months ago
  • 0.22.3                                ...           4 months ago
  • 0.22.2                                ...           4 months ago
  • 0.22.1                                ...           4 months ago
  • 0.22.0                                ...           4 months ago
  • 0.22.0-canary.0                                ...           4 months ago
  • 0.22.0-alpha.46                                ...           4 months ago
  • 0.22.0-alpha.45                                ...           4 months ago
  • 0.22.0-alpha.44                                ...           4 months ago
  • 0.22.0-alpha.43                                ...           4 months ago
  • 0.22.0-alpha.42                                ...           4 months ago
  • 0.22.0-alpha.41                                ...           5 months ago
  • 0.22.0-alpha.40                                ...           5 months ago
  • 0.22.0-alpha.33                                ...           5 months ago
  • 0.22.0-alpha.30                                ...           5 months ago
  • 0.22.0-alpha.29                                ...           5 months ago
  • 0.22.0-alpha.28                                ...           5 months ago
  • 0.22.0-alpha.27                                ...           5 months ago
  • 0.22.0-alpha.26                                ...           5 months ago
  • 0.22.0-alpha.25                                ...           5 months ago
  • 0.22.0-alpha.24                                ...           5 months ago
  • 0.22.0-alpha.23                                ...           5 months ago
  • 0.22.0-alpha.22                                ...           5 months ago
  • 0.22.0-alpha.20                                ...           5 months ago
  • 0.22.0-alpha.18                                ...           6 months ago
  • 0.22.0-alpha.17                                ...           6 months ago
  • 0.22.0-alpha.13                                ...           6 months ago
  • 0.22.0-alpha.12                                ...           6 months ago
  • 0.22.0-alpha.11                                ...           6 months ago
  • 0.22.0-alpha.10                                ...           6 months ago
  • 0.22.0-alpha.9                                ...           6 months ago
  • 0.22.0-alpha.7                                ...           6 months ago
  • 0.22.0-alpha.0                                ...           6 months ago
  • 0.21.1                                ...           6 months ago
  • 0.21.0                                ...           6 months ago
  • 0.20.0                                ...           6 months ago
  • 0.19.2                                ...           6 months ago
  • 0.19.1                                ...           6 months ago
  • 0.19.0                                ...           7 months ago
  • 0.18.4                                ...           7 months ago
  • 0.18.3                                ...           7 months ago
  • 0.18.2                                ...           7 months ago
  • 0.18.1                                ...           7 months ago
  • 0.18.0                                ...           7 months ago
  • 0.17.3                                ...           7 months ago
  • 0.17.2                                ...           7 months ago
  • 0.17.0                                ...           7 months ago
  • 0.16.2                                ...           7 months ago
  • 0.16.1                                ...           7 months ago
  • 0.16.0                                ...           7 months ago
  • 0.15.11                                ...           8 months ago
  • 0.15.10                                ...           8 months ago
  • 0.15.9                                ...           8 months ago
  • 0.15.8                                ...           8 months ago
  • 0.15.7                                ...           8 months ago
  • 0.15.6                                ...           8 months ago
  • 0.15.5                                ...           8 months ago
  • 0.15.4                                ...           8 months ago
  • 0.15.3                                ...           8 months ago
  • 0.15.2                                ...           8 months ago
  • 0.15.1                                ...           8 months ago
  • 0.15.0                                ...           8 months ago
  • 0.14.7                                ...           8 months ago
  • 0.14.6                                ...           9 months ago
  • 0.14.4                                ...           9 months ago
  • 0.14.3                                ...           9 months ago
  • 0.14.1                                ...           9 months ago
Downloads
Today 0
This Week 26
This Month 0
Last Day 0
Last Week 44
Last Month 283
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |