react-native-tip
react-native-tip copied to clipboard
The tip is misplaced when orientation changes
How to reproduce
- click tip
- close
- go from portrait to landscape
- click tip again
- the tip is misplaced
How do I make react-native-tip
to properly handle orientation changes?
I'm having the same issue. Any updates on this?
I found this line inside utils.js
is causing the issue:
const { width: screenWidth, height: screenHeight } = Dimensions.get('window')
It only executes once and does not update when the orientation changes. Relocating this line to getTipPositionProps
seems to fix the issue.
Hey Gaspar thanks for sharing! I will take a look and fix that for you.
Em qua., 7 de set. de 2022 14:43, Gaspar @.***> escreveu:
I'm having the same issue. Any updates on this?
— Reply to this email directly, view it on GitHub https://github.com/MaiconGilton/react-native-tip/issues/6#issuecomment-1239693551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGITJ52X56NW6C27CKI54LV5DH35ANCNFSM5Q5SMQHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>