Astrocoders / Astrocoders/react-native-tooltip-view

Does not align with the child that was pressed

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Using the example provided in the readme, I keep getting the same error message consistently:
![simulator screen shot - iphone 8 plus - 2018-05-02 at 15 06 59](https://user-images.githubusercontent.com/15257582/39546835-5417f0fa-4e1b-11e8-927d-4488cbf045ab.png)

This error causes the tooltip to appear in the upper left hand corner (not where the activating button is located), and the triangle does not appear. Would be nice to get some better documentation for a working example.

Code looks like this:
```
import {Button, Text} from 'native-base';

...Within rendering component...
(

Text

)}
>
{() => (

Message in the tooltip

)}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the README example and the TooltipView trigger usage shown in the report; reproduce the error in the React Native example and inspect how the pressed child is positioned. Done means the tooltip aligns with the activating Button, renders its triangle, and the example documents a working usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, react-native
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.