0.5.0 • Published 7 months ago

react-native-content-dialog v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React Native Content Dialog npm version

Fluent dialog for display custom content with title and buttons

Install

Yarn

yarn add react-native-content-dialog

Get Started

import React from 'react';
import { Button, Text,View } from 'react-native';

import { ContentDialog } from 'react-native-content-dialog';

export default function App(): JSX.Element {
  const [showDialog, setShowDialog] = React.useState(false);
  return (
    <View>
      <Button title='Show dialog' onPress={() => {setShowDialog(true)}}/>
      <ContentDialog
        title='This is my dialog title'
        show={showDialog}>
        close={() => setShowDialog(false)}>
        <Text>This is my dialog content</Text>
      </ContentDialog>
    <View/>
  );
};
0.5.0

7 months ago

0.4.0

7 months ago

0.3.0

7 months ago

0.2.0

8 months ago

0.1.0

8 months ago