react-native-anavi
Version:
react native amap navigation component, Android + iOS
30 lines (24 loc) • 1.02 kB
JavaScript
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { requireNativeComponent, ViewPropTypes } from 'react-native';
import { LatLngPropType } from '../prop-types';
/**
* @ignore
*/
export default class TexturePolyline extends React.PureComponent {
render() {
return /*#__PURE__*/React.createElement(AMapTexturePolyline, this.props);
}
} // @ts-ignore
_defineProperty(TexturePolyline, "propTypes", { ...ViewPropTypes,
coordinates: PropTypes.arrayOf(LatLngPropType).isRequired,
width: PropTypes.number,
texture: PropTypes.string,
onPress: PropTypes.func
});
_defineProperty(TexturePolyline, "defaultProps", {
width: 15
});
const AMapTexturePolyline = requireNativeComponent('AMapTexturePolyline', TexturePolyline);
//# sourceMappingURL=texture-polyline.js.map