Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piotrdubiel/bs-lottie
BuckleScript bindings for Lottie for React Native
https://github.com/piotrdubiel/bs-lottie
Last synced: about 1 month ago
JSON representation
BuckleScript bindings for Lottie for React Native
- Host: GitHub
- URL: https://github.com/piotrdubiel/bs-lottie
- Owner: piotrdubiel
- Created: 2018-03-27T21:00:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T04:00:04.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T10:23:25.588Z (about 1 month ago)
- Language: Reason
- Homepage:
- Size: 3.68 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bs-lottie-react-native
## [BuckleScript](https://github.com/bucklescript/bucklescript) bindings for [Lottie for React Native](https://github.com/airbnb/lottie-react-native)
[![npm (scoped)](https://img.shields.io/npm/v/bs-lottie-react-native.svg?style=flat-square)](https://www.npmjs.com/package/bs-lottie-react-native)
---
## Example
See `packages/ReasonableLottie`. It's the original lottie-react-native example recreated in ReasonML.
### TL;DR
```reason
open ReactNative;[@react.component]
let make = () => {
};
```## Installation
Setup your React Native project according to [http://airbnb.io/lottie/react-native/react-native.html](http://airbnb.io/lottie/react-native/react-native.html)
Install this bindings with its peer dependencies
```bash
yarn add bs-lottie-react-native reason-react-native reason-react
```Add `bs-lottie-react-native` (and "reaon-react-native", "reason-react" if they arent't there yet) to `bs-dependencies` in your `bsconfig.json`
```json
{
"bs-dependencies": [
"reason-react",
"reason-react-native",
"bs-lottie-react-native"
]
}
```