Closed adamhari closed 6 months ago
Latest commit: 2c7f9b458ef1edebddcaced5f43de60a610e9789
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Description
lottie-react-native supports web by leveraging this library under the hood.
The
lf-player-container
div is a problem for universal apps because it cannot be styled via props and it's default styling is not consistent with the default React Native View's styling, which causes the web lottie components to have a different layout than their native counterparts.On web, the default display and margin values cause the Lottie container to occupy the full width of it's container and, as a result, the lottie animation content is horizontally centered.
On native, the same component will only occupy the width of the lottie animation.
Type of change
Replace the
lf-player-container
div with a react fragment.Checklist
lf-player-container
does not result in an outline due to tab focus.