Tooltip: popover move elements when appears
See original GitHub issueversion: “^1.2.7”, Device: Android
I want to create a Header component with an icon that shows the popover
Expected behavior
The Tooltip component shows popover without moving its children element
Describe the bug
It could be reproduced using Avatar, Icon and Text element
Screenshots
Avatar
import React from 'react';
import { Text } from 'react-native';
// theme
import { Header, Icon, Tooltip, Avatar } from 'components';
const App: () => React$Node = () => {
return (
<Header
rightComponent={() => (
<Tooltip popover={<Text>Info here</Text>} overlayColor="transparent">
<Avatar rounded icon={{ name: 'person' }} />
</Tooltip>
)}
/>
);
};
export default App;
Icon
import React from 'react';
import { Text } from 'react-native';
// theme
import { Header, Icon, Tooltip, Avatar } from 'components';
const App: () => React$Node = () => {
return (
<Header
rightComponent={() => (
<Tooltip popover={<Text>Info here</Text>} overlayColor="transparent">
<Icon name="person" />
</Tooltip>
)}
/>
);
};
export default App;
Text
const App: () => React$Node = () => {
return (
<Header
rightComponent={() => (
<Tooltip popover={<Text>Info here</Text>} overlayColor="transparent">
<Text>Info here</Text>
</Tooltip>
)}
/>
);
};
Your Environment (please complete the following information):
software | version |
---|---|
react-native-elements | ^1.2.7 |
react-native | 0.61.5 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Changing the position of Bootstrap popovers based on the ...
I haven't looked at the Bootstrap source, yet, but it looks like it only takes the element positioning into account, and not the...
Read more >Popovers · Bootstrap v5.0
Hides an element's popover. Returns to the caller before the popover has actually been hidden (i.e. before the hidden.bs.popover event occurs). This is ......
Read more >How to Position a React-Bootstrap Popover - Pluralsight
A tooltip is generally triggered when you hover over an element, whereas a popover is triggered on a click.
Read more >How to position a Bootstrap popover ? - GeeksforGeeks
However, a popover can contain much more content than a tooltip. ... as Popover by default will appear on the right side of...
Read more >Change Bootstrap Popover Position - Coding Explained -
Here we configure that the popover should be positioned below the element that triggers/opens it, and that we will specify custom HTML ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use skipAndroidStatusBar={true}
@cnmmbd https://react-native-elements.github.io/react-native-elements/docs/next/tooltip.html#skipandroidstatusbar