0.1.4 • Published 1 year ago
react-native-reanimated-tooltip v0.1.4
react-native-reanimated-tooltip
Tooltip for React Native using React Native Reanimated and @gorhom/portal
Installation
npm install react-native-reanimated @gorhom/portal react-native-reanimated-tooltip
Usage
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);
<PortalProvider>
<Tooltip
content={
<Text>Tooltip</Text>
}
visible={visible}
onPress={() => {
setVisible(false);
}}
entering={FadeIn}
exiting={FadeOut}
>
<Button
title="Toggle tooltip"
onPress={() => {
setVisible(true);
}}
/>
</Tooltip>
</PortalProvider>
Configuration
Check TooltipProps
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
0.1.2
1 year ago
0.1.1
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.0
2 years ago
0.1.0-beta.10
2 years ago
0.1.0-beta.9
2 years ago
0.1.0-beta.8
2 years ago
0.1.0-beta.7
2 years ago
0.1.0-beta.6
2 years ago
0.1.0-beta.5
2 years ago
0.1.0-beta.4
2 years ago
0.1.0-beta.3
2 years ago
0.1.0-beta.2
2 years ago
0.1.0-beta.1
2 years ago
0.1.0-beta.0
2 years ago