Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 548 Bytes

File metadata and controls

21 lines (17 loc) · 548 Bytes

react-native-app-helpers/SimpleModal

A replacement for the React Native Modal component which supports web browsers as a target.

Usage

import { SimpleModal } from "react-native-app-helpers";

const ExampleScreen = () => (
  <SimpleModal onClose={() => {
    console.log(`Called when either the back button is pressed or the modal's background is pressed.`);
  }}>
    <Text>
      This is overlaid on top of the rest of the app.
      The background is transparent, but blocks clicks/touches.
    </Text>
  </SimpleModal>
);