Astrocoders / react-native-tooltip-view

A deadly simple tooltip view that you can put whatever you want :tada:
MIT License
17 stars 2 forks source link

Does not align with the child that was pressed #8

Open ekimlinger opened 6 years ago

ekimlinger commented 6 years ago

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

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...
            <TooltipView
                trigger={onPress => (
                    <Button onPress={onPress}>
                        <Text>Text</Text>
                    </Button>
                )}
            >
                {() => (
                    <Text>
                        Message in the tooltip
                    </Text>
                )}
            </TooltipView>
fakenickels commented 6 years ago

Hey, could you provide a reproduction in https://snack.expo.io/?