numandev1 / react-native-interactable-reanimated

This is a copy of interactable from react-native-reanimated
MIT License
34 stars 5 forks source link

Would you like to support me?


Buy Me A Coffee

react-native-interactable-reanimated

NPM JavaScript Style Guide

              

Note

This is a copy of interactable from react-native-reanimated

Install

npm install --save react-native-interactable-reanimated

Usage

import React, { Component } from 'react'

import Interactable from 'react-native-interactable-reanimated'

class Example extends Component {
  render() {
    return (
        <Interactable.View
          horizontalOnly={true}
          snapPoints={[{x: 0}, {x: -200}]}
          onSnap={this.onDrawerSnap}>

      // the view that you wrap here will now support interactions

        </Interactable.View>
    )
  }
}

Disclaimer

This is a copy of example app from react-native-interactable project.

There are several changes made to the files here:

License

MIT © nomi9995