StatefulComponent π
This is a swiss army knife component. Intended to be used as a single source of UI state management. It shows empty, loading, error or data states based on the given props.
Usage
<StatefulComponent data={data} loading={true} delay={200} timeout={10000}>
<Text>Content</Text>
</StatefulComponent>
Properties
prop
type
required
default
description
testID
string
no
-
Used to locate this view in end-to-end tests.
Last updated
Was this helpful?