Skip to content

BANG88/react-native-svga-player

Repository files navigation

react-native-svga-player

Getting started

$ npm install react-native-svga-player --save

Mostly automatic installation

Linking it when your react-native is under 0.60.x

$ react-native link react-native-svga-player

Usage

import RNSvgaPlayer from 'react-native-svga-player'
<RNSvgaPlayer
  style={{ width: 200, height: 200 }}
  source={`https://raw.githubusercontent.com/yyued/SVGAPlayer-iOS/master/SVGAPlayer/Samples/Goddess.svga`}
/>
Simulator.Screen.Recording.-.iPhone.11.-.2021-05-26.at.10.17.33.mp4