Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.08 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.08 KB

ExpoBook 📚

Expobook allows you to present and develop react-native UI components in a standalone dev environment within an expo app.

Demo

How to setup

Install expobook.

$ npm i expobook

Create your expobook entry file.

$ touch expobook.js

Add components to expobook.

// ./expobook.js
import React from 'react';
import createExpobook from 'expobook';
import MyButton from './components/button';

const expobook = createExpobook();

expobook.add('My Button', () => <MyButton>Hello</MyButton>);

expobook.add('Another Button', () => <MyButton>Goodbye</MyButton>);

export default expobook.build();

Run expobook:

$ ./node_modules/.bin/expobook

OR better yet Add "expobook": "./node_modules/.bin/expobook" to "scripts" in your package.json and just run npm run expobook.

TODO

  • Enable custom exp cli config pass through
  • Fix paths so that __expobook__ becomes .expobook

Contribution

Lint all files:

npm run lint