11import * as React from "react" ;
22import { View , StyleSheet , Text } from "react-native" ;
3- import { ActivityIndicator , withTheme } from "@draftbit/ui" ;
3+ import { LoadingIndicator , withTheme } from "@draftbit/ui" ;
44import Section , { Container } from "./Section" ;
5- import { ActivityIndicatorType } from "@draftbit/core/lib/typescript/src/components/ActivityIndicator " ;
5+ import { LoadingIndicatorType } from "@draftbit/core/lib/typescript/src/components/LoadingIndicator " ;
66
77interface WrapperProps {
88 label : string ;
@@ -20,66 +20,50 @@ const Wrapper: React.FC<WrapperProps> = ({ label, children }) => {
2020 ) ;
2121} ;
2222
23- const ActivityIndicatorExample : React . FC = ( ) => {
23+ const LoadingIndicatorExample : React . FC = ( ) => {
2424 return (
2525 < Container style = { { } } >
26- < Section style = { { } } title = "Default" >
27- < View style = { { flexDirection : "row" } } >
28- < Wrapper label = "Small" >
29- < ActivityIndicator size = "small" />
30- </ Wrapper >
31- < Wrapper label = "Large" >
32- < ActivityIndicator size = "large" />
33- </ Wrapper >
34- < Wrapper label = "Size" >
35- < ActivityIndicator size = { 80 } />
36- </ Wrapper >
37- </ View >
38- </ Section >
3926 < Section style = { { } } title = "Loading" >
4027 < View style = { { flexDirection : "row" } } >
41- < Wrapper label = "Default" >
42- < ActivityIndicator />
43- </ Wrapper >
4428 < Wrapper label = "Plane" >
45- < ActivityIndicator type = { ActivityIndicatorType . plane } />
29+ < LoadingIndicator type = { LoadingIndicatorType . plane } />
4630 </ Wrapper >
4731 < Wrapper label = "Chase" >
48- < ActivityIndicator type = { ActivityIndicatorType . chase } />
32+ < LoadingIndicator type = { LoadingIndicatorType . chase } />
4933 </ Wrapper >
5034 < Wrapper label = "Bounce" >
51- < ActivityIndicator type = { ActivityIndicatorType . bounce } />
35+ < LoadingIndicator type = { LoadingIndicatorType . bounce } />
5236 </ Wrapper >
5337 < Wrapper label = "Wave" >
54- < ActivityIndicator type = { ActivityIndicatorType . wave } />
38+ < LoadingIndicator type = { LoadingIndicatorType . wave } />
5539 </ Wrapper >
5640 < Wrapper label = "Pulse" >
57- < ActivityIndicator type = { ActivityIndicatorType . pulse } />
41+ < LoadingIndicator type = { LoadingIndicatorType . pulse } />
42+ </ Wrapper >
43+ < Wrapper label = "Flow" >
44+ < LoadingIndicator type = { LoadingIndicatorType . flow } />
5845 </ Wrapper >
5946 </ View >
6047 </ Section >
6148 < Section style = { { } } title = "Loading" >
6249 < View style = { { flexDirection : "row" } } >
63- < Wrapper label = "Flow" >
64- < ActivityIndicator type = { ActivityIndicatorType . flow } />
65- </ Wrapper >
6650 < Wrapper label = "Swing" >
67- < ActivityIndicator type = { ActivityIndicatorType . swing } />
51+ < LoadingIndicator type = { LoadingIndicatorType . swing } />
6852 </ Wrapper >
6953 < Wrapper label = "Circle" >
70- < ActivityIndicator type = { ActivityIndicatorType . circle } />
54+ < LoadingIndicator type = { LoadingIndicatorType . circle } />
7155 </ Wrapper >
7256 < Wrapper label = "Circle Fade" >
73- < ActivityIndicator type = { ActivityIndicatorType . circleFade } />
57+ < LoadingIndicator type = { LoadingIndicatorType . circleFade } />
7458 </ Wrapper >
7559 < Wrapper label = "Grid" >
76- < ActivityIndicator type = { ActivityIndicatorType . grid } />
60+ < LoadingIndicator type = { LoadingIndicatorType . grid } />
7761 </ Wrapper >
7862 < Wrapper label = "Fold" >
79- < ActivityIndicator type = { ActivityIndicatorType . fold } />
63+ < LoadingIndicator type = { LoadingIndicatorType . fold } />
8064 </ Wrapper >
8165 < Wrapper label = "Wander" >
82- < ActivityIndicator type = { ActivityIndicatorType . wander } />
66+ < LoadingIndicator type = { LoadingIndicatorType . wander } />
8367 </ Wrapper >
8468 </ View >
8569 </ Section >
@@ -102,4 +86,4 @@ const styles = StyleSheet.create({
10286 } ,
10387} ) ;
10488
105- export default withTheme ( ActivityIndicatorExample ) ;
89+ export default withTheme ( LoadingIndicatorExample ) ;
0 commit comments