diff --git a/README.md b/README.md index 65b03ad..148e609 100644 --- a/README.md +++ b/README.md @@ -2,41 +2,44 @@ Tooltip for React Native using React Native Reanimated and Modal -![Demo 1](./demo/1.gif) +![Demo 1](./demo.gif) ## Installation ```sh -npm install react-native-reanimated react-native-reanimated-tooltip +npm install react-native-reanimated @gorhom/portal react-native-reanimated-tooltip ``` ## Usage ```ts +import { PortalProvider } from '@gorhom/portal'; import React from 'react'; import { Text, Button } from 'react-native'; import { Tooltip } from 'react-native-reanimated-tooltip'; import { FadeOut, FadeIn } from 'react-native-reanimated'; const [visible, setVisible] = React.useState(false); -Tooltip - } - visible={visible} - onPress={() => { - setVisible(false); - }} - entering={FadeIn} - exiting={FadeOut} -> -