Skip to content

nachos-ui/nachos-ui

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Some components like the Input component fail to render with errors such as:
`Unhandled JS Exception: TypeError: TypeError: TypeError: Cannot read property 'color' of undefined`
if the highest component in the app is not wrapped in a `<ThemeProvider>`
d45b411

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 14, 2018 10:28
January 31, 2017 11:13
January 31, 2017 11:13
January 31, 2017 11:13
January 31, 2017 11:21
June 12, 2018 12:09
January 31, 2017 11:13
January 31, 2017 11:13
May 4, 2018 09:29
August 15, 2018 15:47
June 12, 2018 12:09

Nachos UI

Build Status

Intro

Nachos UI is a React Native component library. Read more about how we built it on Medium.

Features:

Getting started

Requires React Native 0.40 and higher.

$ npm install --save nachos-ui  

OR

$ yarn add nachos-ui

The ThemeProvider component should be set at the highest level of your app. If it is not, Nachos UI components will NOT render.

import { ThemeProvider } from "nachos-ui";

export default (App = () => (
  <ThemeProvider>
    <RestOfYourApp />
  </ThemeProvider>
));
import React from 'react'
import { View } from 'react-native'
import { Button } from 'nachos-ui'

const App = () => {
  return (
    <View>
    	<Button>Button</Button>
    </View>
  )
}

Documentation

Visit the documentation at https://avocode.com/nachos-ui/docs/ with technical information about each component.

Contributing

Contributions are always welcome! Before contributing, please read our Code Of Conduct.

Read Contributing.

Developers

To play with Nachos UI locally first clone the repository:

$ git clone git@github.com:avocode/nachos-ui.git

Ideally use Yarn to install your dependencies. It's fast and consistent:

$ yarn install

To run the iOS simulator run:

$ yarn run start

To run the Web version:

$ yarn run start:web

License

Nachos UI is open source and released under the MIT License.

Thanks!