react-native-ui-lib
react-native-ui-lib copied to clipboard
Fix/hint message location
Description
Fix for Hint tip and message not in same location bug. When the hint is pointing to component that is large the hint and tip are placed at different location (will probably happen when width of component is larger than 1/3 of the screen). Tip location is correct, message is not. Snippets for reproducing: Tablet:
<View flex paddingT-100>
<Hint message={'This is a hint'} visible>
<View width={800}>
<Button label="Hint me"/>
</View>
</Hint>
</View>
Phone:
<View flex paddingT-100>
<Hint message={'This is a hint'} visible>
<View width={300}>
<Button label="Hint me"/>
</View>
</Hint>
</View>
Changelog
Hint - Big fix where tip and message are not at same location.
Additional info
MADS-3858