How to use the react-native-modals.SlideAnimation function in react-native-modals

To help you get started, we’ve selected a few react-native-modals examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jacklam718 / react-native-modals / modals-example / App.js View on Github external
onDismiss={() => {
            this.setState({ swipeableModal: false });
          }}
          width={0.9}
          overlayOpacity={1}
          visible={this.state.swipeableModal}
          rounded
          actionsBordered
          onSwipeOut={() => {
            this.setState({ swipeableModal: false });
          }}
          onTouchOutside={() => {
            this.setState({ swipeableModal: false });
          }}
          swipeDirection={['down', 'up']}
          modalAnimation={new SlideAnimation({ slideFrom: 'bottom' })}
          modalTitle={
            
          }
          footer={
            
               {
                  this.setState({ swipeableModal: false });
                }}
                key="button-1"
              />

react-native-modals

React Native Modals Library for IOS & Android.

MIT
Latest version published 3 years ago

Package Health Score

47 / 100
Full package analysis