How to use the @storybook/react-native.getStorybook function in @storybook/react-native

To help you get started, we’ve selected a few @storybook/react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github artsy / emission / src / lib / Components / Storybooks / index.tsx View on Github external
import Browser from "./SectionBrowser"
import { storiesToTree } from "./utils"

export interface Story {
  name: string
  render: () => any
}

export interface StorySection {
  kind: string
  sections?: StorySection[]
  stories?: Story[]
}

const stories = storybook.getStorybook()
const root = storiesToTree(stories)

const render = (_props: any) => (
  
)

export default class StorybookBrowser extends React.Component {
  render() {
    return render(this.props)
  }
}