1.0.6 • Published 5 months ago

@nguyentc21/react-native-tooltip v1.0.6

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

@nguyentc21/react-native-tooltip

Simple tooltip for React native app

Installation

yarn add @nguyentc21/react-native-tooltip

Required

This Tooltip is built on @nguyentc21/react-native-modal-view. So you must install it first.

Usage

import Tooltip from '@nguyentc21/react-native-tooltip';

// ...
export function NiceView(props: Props) {
  // ...
  return (
    <>
      {/* ... */}
      <Tooltip
        // disabled
        placement="bottom"
        content={
          <Text style={[styles.text, { color: colors.RED40 }]}>
            Tooltip message.
          </Text>
        }
      >
        <View style={{ padding: 20, backgroundColor: '#fff' }}>
          <Text>Press me to see the tooltip!</Text>
        </View>
      </Tooltip>
      {/* ... */}
    </>
  );
}

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

1.0.6

5 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago