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

Anchor arrow not shown #191

Open
udarts opened this issue Sep 3, 2020 · 2 comments
Open

Anchor arrow not shown #191

udarts opened this issue Sep 3, 2020 · 2 comments

Comments

@udarts
Copy link

udarts commented Sep 3, 2020

Referring to a previous post: #148

The anchor arrow is still not shown.

Using the following code:

<Menu
    opened={contextMenuOpen}
    onBackdropPress={() => setConextMenuOpen(false)}
    rendererProps={{placement: 'top', anchorStyle: {backgroundColor: '#000000'}}}>
    <MenuTrigger/>
    <MenuOptions>
        <MenuOption onSelect={() => alert(`Delete`)} >
            <Text style={{color: 'red'}}>Delete</Text>
        </MenuOption>
    </MenuOptions>
</Menu>

The anchor is not shown.

Any idea why?

@cxt19951016
Copy link

same error

@TheChanDI
Copy link

TheChanDI commented Dec 30, 2020

Referring to a previous post: #148

The anchor arrow is still not shown.

Using the following code:

<Menu
    opened={contextMenuOpen}
    onBackdropPress={() => setConextMenuOpen(false)}
    rendererProps={{placement: 'top', anchorStyle: {backgroundColor: '#000000'}}}>
    <MenuTrigger/>
    <MenuOptions>
        <MenuOption onSelect={() => alert(`Delete`)} >
            <Text style={{color: 'red'}}>Delete</Text>
        </MenuOption>
    </MenuOptions>
</Menu>

The anchor is not shown.

Any idea why?

Have u use renderer={renderers.Popover} in Menu props ? But you have to import renderers from the react-native-popup-menu.

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

3 participants