pushinbr / pam-native-lottie
Native Lottie animations for PAM Native: lottie-android and lottie-ios behind one host view, paused off-screen, with a bounded composition cache.
Package info
github.com/push-in/pam-native-lottie
Language:Kotlin
Type:pam-native-plugin
pkg:composer/pushinbr/pam-native-lottie
v0.1.0
2026-10-28 02:33 UTC
Requires
- php: ^8.5
- pushinbr/pam-native: ^1.0
Requires (Dev)
- pushinbr/pam-native-plugin-kit: ^0.2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Native Lottie (Bodymovin) animations for PAM Native, the equivalent of
lottie-react-native: lottie-android 6.6 and lottie-ios 4.5 behind one host
view, lottie.view.
use Pam\Native\Lottie\Lottie; Lottie::url('https://cdn.example.com/party/lottie.json') ->size(116) ->playing($visible) // RN ref.resume() / ref.pause() ->fallback('🎉');
<Lottie :uri="$emoji['lottieUrl']" size="116" :playing="$visible" fallback="🎉" label="Emoji animado" /> <Lottie src="assets/lottie/success.json" size="64" :loop="false" />
- Frames only while the view is attached, visible and
playing; reduced motion shows the first frame. - One process-wide composition cache (32 entries / 12 MiB, LRU, trimmed on memory pressure); concurrent requests for a URL share a single download; parsing off the main thread.
- Android renders with
RenderMode.HARDWARE(asrenderMode="HARDWARE"in RN).
See docs/lottie.md. Install with composer require pushinbr/pam-native-lottie.