Add a development sandbox to storybook

This commit is contained in:
Nicolas Gallagher
2018-05-09 10:38:34 -07:00
parent 18933724d6
commit d3a8270d55
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import React from 'react';
import { View, StyleSheet } from 'react-native';
export default class Sandbox extends React.PureComponent {
render() {
return <View styles={styles.root} />;
}
}
const styles = StyleSheet.create({
root: {}
});

View File

@@ -0,0 +1,9 @@
import React from 'react';
import { storiesOf } from '../../ui-explorer';
import Sandbox from './Sandbox';
const SandboxScreen = () => <Sandbox />;
if (process.env.NODE_ENV !== 'production') {
storiesOf('Example apps', module).add('Sandbox', SandboxScreen);
}