@prosperitainova/dumbo-react-native
Version:
Dumbo for React Native Library
35 lines • 1.2 kB
TypeScript
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { DimensionValue } from 'react-native';
export declare const centerLoadingStyle: {
marginLeft: DimensionValue;
marginRight: DimensionValue;
marginTop: number;
};
/** Props for Loading component */
export type LoadingProps = {
/** Indicates type of loading spinner (large is default) */
type?: 'large' | 'medium' | 'small';
/** Text to use for loader (accessibility). Defaults to ENGLISH "Loading" */
loadingText?: string;
/** Style to set on the item */
style?: StyleProp<ViewStyle>;
};
/**
* Loading component for rendering a loading spinner
*
* {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/Loading.tsx | Example code}
*/
export declare class Loading extends React.Component<LoadingProps> {
private animatedValue;
private get largeLoading();
private get mediumLoading();
private get smallLoading();
private get size();
private animateSpin;
private get animatedStyle();
private get mainView();
componentDidMount(): void;
render(): React.ReactNode;
}
//# sourceMappingURL=index.d.ts.map