We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd1a772 commit 86f2810Copy full SHA for 86f2810
android/src/main/java/com/ijzerenhein/sharedelement/RNSharedElementTransition.java
@@ -179,8 +179,13 @@ private void updateLayout() {
179
RNSharedElementStyle startStyle = startItem.getStyle();
180
RNSharedElementStyle endStyle = endItem.getStyle();
181
if ((startStyle == null) && (endStyle == null)) return;
182
+
183
+ // Get content
184
RNSharedElementContent startContent = startItem.getContent();
185
RNSharedElementContent endContent = endItem.getContent();
186
+ if ((mAnimation == RNSharedElementAnimation.MOVE) && (startContent == null) && (endContent != null)) {
187
+ startContent = endContent;
188
+ }
189
190
// Get layout
191
Rect startLayout = (startStyle != null) ? startStyle.layout : EMPTY_RECT;
0 commit comments