We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41f83f6 commit 8784182Copy full SHA for 8784182
1 file changed
examples/shared/src/screens/Loading.screen.tsx
@@ -15,10 +15,22 @@ export const LoadingScreen = () => {
15
}, 1500);
16
};
17
18
+ // onMount set isLoading to true
19
+ React.useEffect(() => {
20
+ setIsLoading(true);
21
+ setTimeout(() => {
22
+ setIsLoading(false);
23
+ }, 1500);
24
+ }, []);
25
+
26
return (
27
<View style={styles.container}>
28
<Loading isLoading={isLoading} />
- <CTAPressable title="Trigger Loading" onPress={triggerLoading} />
29
+ <CTAPressable
30
+ title="Trigger Loading"
31
+ onPress={triggerLoading}
32
+ disabled={isLoading}
33
+ />
34
</View>
35
);
36
0 commit comments