@wordpress/components
Version:
UI components for WordPress.
23 lines (21 loc) • 444 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* External dependencies
*/
import { View } from 'react-native';
/**
* Internal dependencies
*/
import style from './style.scss';
export default function Spinner(props) {
const {
progress = 0
} = props;
const width = progress + '%';
return createElement(View, {
style: [style.spinner, {
width
}, props.style]
});
}
//# sourceMappingURL=index.native.js.map