UNPKG

@wordpress/components

Version:
23 lines (18 loc) 361 B
/** * 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 } /> ); }