Home

Awesome

react-native-diagnose

npm version

A react runtime diagnose component

Rationale

import { Diagnose, Test } from 'react-diagnose'

/**
 * Diagnose will run all test components inside
 * Test components are going to be marked visually as completed or not
 * to d
 */
return (
  <Diagnose suiteTitle="Diagnose">
    <Test should="Passing test" />
    <Test should="Unfinished test" run={() => {
      return new Promise(() => setTimeout(() => {}, 1000000))
    }} />
    <Test should="Failed test" run={() => {throw new Error('Failing test')}} />
    <Test should="Dummy test" />
  </Diagnose>
)
<img alt="demo screenshot" src="screenshot.png" width="350" />

Help wanted

More documentation is incoming, in the meanwhile please read the source code. It is a single file! PRs and issues are more than welcome.

<a href="https://getyeti.co" target="_blank"> <img alt="works with yeti" src="works-with-yeti.png" width="100" /> </a>

 This package powers Yeti Smart Home and is used in production.

Follow us in Github or https://twitter.com/netbeast_co.