Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltip opening in left bottom side #29

Open
yeomann opened this issue Jul 20, 2018 · 0 comments
Open

tooltip opening in left bottom side #29

yeomann opened this issue Jul 20, 2018 · 0 comments

Comments

@yeomann
Copy link

yeomann commented Jul 20, 2018

can you tell me what is exactly wrong I copy one of your example and been trying couple of ways, whenever I click this just goes to bottom of screen on left side. also it is creating a copy of button as well. I am not sure what is the issue.

Here's the relevant code.

<View
    style={{
        flex: 1,
        alignSelf: "stretch",
        alignItems: "center",
        justifyContent: "flex-start",
        backgroundColor: "#fff"
    }}
>
    <View style={{ height: 40 }} />
    <Text>testing tooltip Effect</Text>
    <PopoverTooltip
        ref="tooltip1"
        setBelow
        buttonComponent={
            <View
                style={{
                    width: 200,
                    height: 50,
                    backgroundColor: "orange",
                    justifyContent: "center",
                    alignItems: "center",
                    borderRadius: 5
                }}
            >
                <Text>Press Me</Text>
            </View>
        }
        items={[
            {
                label: "Item 1",
                onPress: () => {}
            },
            {
                label: "Item 2",
                onPress: () => {}
            }
        ]}
    />
</View>

screen shot 2018-07-20 at 11 13 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant