0.1.9 • Published 2 years ago

@examedi/widget v0.1.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Widget Examedi

Widget of Examedi scheduling steps for React Native. Just import the component and it'll display, allowing to select exams, date and pay the appointment.

Installation

With yarn

yarn add @examedi/widget

or with npm

npm i @examedi/widget

Usage

To create an appointment with Examedi, you must import ExamediWidget component... and that's it!

import { useState } from "react";
import { Button, StyleSheet, Text, View } from "react-native";
import { ExamediWidget } from "@examedi/widget";

export default function App() {
  const [open, setIsOpen] = useState(true);
  return (
    <View style={styles.container}>
      <ExamediWidget
        fullScreen
        open={open}
        onCloseButton={() => setIsOpen(false)}
        clientId="abcd-1234-efgh-5678"
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
});

Props

ExamediWidget

PropDescriptionTypeRequiredExample
clientIdclientId of your organization.stringrequiredabcd-1234-efgh-5678
openDisplay or hide the component. If true ExamediWidget will display, if false ExamediWidget will hide.booleanrequiredtrue/false
fullScreenIndicate if ExamediWidget should display in fullScreen or not.booleanoptionaltrue/false
onCloseButtonCallback function to exec when close ExamediWidget.functionoptional() => handleCloseModal(arg1, arg2)
containerStyleStyle to apply to container View of ExamediWidget.objectoptional{ backgroundColor: "yellow"}
0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago