增加Animated.View background,解决 ViewManager for tag xxx could not be found 问题
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -236,6 +236,7 @@ class SwipeRow extends React.PureComponent { | @@ -236,6 +236,7 @@ class SwipeRow extends React.PureComponent { | ||
236 | <Animated.View | 236 | <Animated.View |
237 | {...this._panResponder.panHandlers} | 237 | {...this._panResponder.panHandlers} |
238 | style={{ | 238 | style={{ |
239 | + backgroundColor: 'transparent', | ||
239 | transform: [ | 240 | transform: [ |
240 | {translateX: this._translateX} | 241 | {translateX: this._translateX} |
241 | ] | 242 | ] |
@@ -250,6 +251,7 @@ class SwipeRow extends React.PureComponent { | @@ -250,6 +251,7 @@ class SwipeRow extends React.PureComponent { | ||
250 | {...this._panResponder.panHandlers} | 251 | {...this._panResponder.panHandlers} |
251 | onLayout={ (e) => this.onContentLayout(e) } | 252 | onLayout={ (e) => this.onContentLayout(e) } |
252 | style={{ | 253 | style={{ |
254 | + backgroundColor: 'transparent', | ||
253 | transform: [ | 255 | transform: [ |
254 | {translateX: this._translateX} | 256 | {translateX: this._translateX} |
255 | ] | 257 | ] |
-
Please register or login to post a comment