0.0.5 • Published 5 years ago

expobook v0.0.5

Weekly downloads
64
License
MIT
Repository
-
Last release
5 years ago

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
0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago