mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-01-12 22:50:00 +08:00
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-content-loader",
|
||||
"version": "4.4.2",
|
||||
"version": "5.0.1",
|
||||
"description": "SVG-Powered component to easily create placeholder loadings (like Facebook cards loading)",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -79,8 +79,8 @@ class NativeSvg extends Component<IContentLoaderProps, { offset: number }> {
|
||||
const offset2 = offsetValueBound(this.state.offset)
|
||||
const offset3 = offsetValueBound(this.state.offset + 1)
|
||||
|
||||
const rtlStyle = rtl ? { transform: [{ rotateY: '180deg' }] } : {}
|
||||
const composedStyle = Object.assign(style, rtlStyle)
|
||||
const rtlStyle: object = rtl ? { transform: [{ rotateY: '180deg' }] } : {}
|
||||
const svgStyle = Object.assign(Object.assign({}, style), rtlStyle)
|
||||
|
||||
// Remove unnecessary keys
|
||||
delete props.uniqueKey
|
||||
@@ -88,7 +88,7 @@ class NativeSvg extends Component<IContentLoaderProps, { offset: number }> {
|
||||
delete props.speed
|
||||
|
||||
return (
|
||||
<Svg style={composedStyle} {...props}>
|
||||
<Svg style={svgStyle} {...props}>
|
||||
<Rect
|
||||
x="0"
|
||||
y="0"
|
||||
|
||||
Reference in New Issue
Block a user