react-native-tooltip-view icon indicating copy to clipboard operation
react-native-tooltip-view copied to clipboard

Does not align with the child that was pressed

Open ekimlinger opened this issue 7 years ago • 1 comments

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>

ekimlinger avatar May 02 '18 20:05 ekimlinger

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

fakenickels avatar May 04 '18 18:05 fakenickels