Skip to main content

Spinner

Spinner is part of the @flexnative/icons package. To use the FlexNative Spinner you needs to install @flexnative/icons package. Fallow this link on how to install the package.

You can use any of paskage's icon as apinner.

API

import { Spinner } from '@flexnative/icons';

Component

A memoized React component that renders a spinning icon using animated styles.

Spinner

Type: React.MemoExoticComponent<(props: IconProps) => React.JSX.Element>

Properties

info

and Spinner components expects props of type IconProp.

Usecase Examples

The following example demonstrates the Spinner in action.

Colors

Sizes

Styling with StyleSheet

Any Icon

Playground

Live Editor
//Play with props to see live changes;

render(<Spinner name='star' size={128} color='secondary' />);
Result
Loading...