Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (34 loc) · 917 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 917 Bytes

react-native-fast-animations

React Native animations via Core Animation or RenderThread API

Status

Used in production at Openland for over the year.

Installation

0. Setup Swift and Kotlin

  • Open your iOS project in Xcode and create empty Swift file and bridging header to enable Swift support

  • Modify android/build.gradle:

    buildscript {
      ext {
        ...
    +   kotlinVersion = "1.3.50"
      }
    ...
    
      dependencies {
    +   classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
        ...

1. Install latest version from npm

yarn add react-native-fast-animations

2. Install pods

cd ios && pod install && cd ..

Example

import * as React from 'react'
import { View } from 'react-native'
import {
  FastAnimations
} from 'react-native-fast-animations'

License

MIT