Skip to content

DX tool to test react-native components with defined props/state fixtures.

License

Notifications You must be signed in to change notification settings

jerolimov/react-native-cosmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-cosmos

DX tool to test react-native components with defined props/state fixtures.

This project brings the "cosmos for React" idea from @skidding into the react-native universe.

Watch this youtube videos for a quick introduction.

Getting started

npm install --save react-native-cosmos
import { EditableComponent } from 'react-native-cosmos';

<EditableComponent component={ YourComponent } fixture={{
    propKey: "propValue",
    state: {
        stateKey: "stateValue"
    }
}} />

Roadmap

The current implementation contains a single editable component (see above).

  • Extend documentation how to import this into a react-native project.
  • Serialize also child props and state???
  • Show a ListView of components and components fixtures???
  • Add an option to add documentation to make this a living styleguide???

Author

Christoph Jerolimov, @jerolimov

Credits

Ideas, discussions and contributions are welcome: Just open a new issue

License

This project is released under the MIT License. See the LICENSE file for further details.

About

DX tool to test react-native components with defined props/state fixtures.

Resources

License

Stars

Watchers

Forks

Packages

No packages published