Skip to content

Commit f8ec09c

Browse files
author
Gabriel Peal
committed
Default style to absoluteFill
Since the Lottie React Native improvements to scale type in 1629e0e, the AnimationView can safely default to absoluteFill and the animation will be rendered at its original size centered in the view. Fixes lottie-react-native#136
1 parent 317ca9a commit f8ec09c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/LottieView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const defaultProps = {
6363
loop: true,
6464
enableMergePathsAndroidForKitKatAndAbove: false,
6565
resizeMode: 'contain',
66+
style: StyleSheet.absoluteFill,
6667
};
6768

6869
const viewConfig = {

0 commit comments

Comments
 (0)