0.0.6 • Published 4 years ago

rn-qmodal v0.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

React Native Quick Modal

This is a React Native Quick Modal creator.

Examples

Artboard

Usage

import React from 'react';
import { Text } from 'react-native';
import {Block,Button} from 'galio-framework';
import QModal from "rn-qmodal";


export default class App extends React.Component {
  state={
    visible:false
  };
  toggleOverlay = () =>{
    this.setState({
      visible:!this.state.visible
    });
  }

  render() {
    return (
      <Block safe flex>
        <QModal
          animation={'fade'}
          card full center backdrop
          visible={this.state.visible}
          toggle={this.toggleOverlay}
         >
            <Button onPress={()=>{this.toggleOverlay()}}style={{marginVertical:20}} 
                  round uppercase color={"#50C7C7"}>Open
          </Button>
        </QModal>
        </Block>
    );
  }
}

Props

PropTypeDefault
cardboolfalse
backdropboolfalse
toggleCallback-
halfbooltrue
fullboolfalse
topboolfalse
centerboolfalse
animationstringslide

Author

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago