"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Spinner;
var _reactNative = require("react-native");
var _style = _interopRequireDefault(require("./style.scss"));
var _jsxRuntime = require("react/jsx-runtime");
/**
 * External dependencies
 */

/**
 * Internal dependencies
 */

function Spinner(props) {
  const {
    progress = 0,
    testID
  } = props;
  const width = progress + '%';
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
    style: [_style.default.spinner, {
      width
    }, props.style],
    testID: testID
  });
}
//# sourceMappingURL=index.native.js.map