Skip to main content
Version: 7.0.0

StateScreen

Component that shows a full screen for a certain state, like an empty state
(code example)

Usage

Live Editor
<StateScreen
  title={'Title'}
  subtitle={'Subtitle'}
  ctaLabel={'Done'}
  imageSource={source}
/>
Result
Loading...

API

ctaLabel

Text to to show in the CTA button string

imageSource

The image source that's showing at the top. use an image that was required locally ImageURISource

onCtaPress

Action handler for CTA button () => void

testID

Use to identify the container in tests string

title

To to show as the title string