@wordpress/components
Version:
UI components for WordPress.
23 lines (18 loc) • 361 B
JavaScript
/**
* External dependencies
*/
import { View } from 'react-native';
/**
* Internal dependencies
*/
import style from './style.scss';
export default function Spinner( props ) {
const { progress = 0, testID } = props;
const width = progress + '%';
return (
<View
style={ [ style.spinner, { width }, props.style ] }
testID={ testID }
/>
);
}