question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prop missing: Drawer.Item's right prop

See original GitHub issue

Current behaviour

From documentation (https://callstack.github.io/react-native-paper/drawer-item.html) we can see that there should be a “right” prop. right: “Callback which returns a React element to display on the right side. For instance a Badge.” When we try to use the prop, nothing happens and errors come out.

Expected behaviour

From documentation, there should be a “right” prop.

Code sample

<Drawer.Item
    label="Theme"
    icon="wb-sunny"
    right={pppp => <CustomSwitch />}
/>

Screenshots (if applicable)

None

What have you tried

Updating, etc.

Your Environment

software version
android any
react-native 0.64.0
rn-paper 4.8.1
node v14.5.0
yarn v1.22.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lukewalczakcommented, May 18, 2021

Hey @codakkk, that feature will be introduced in the upcoming release. In the meantime you can install paper from the main branch to have that functionality.

0reactions
codakkkcommented, May 18, 2021

Hey @codakkk, that feature will be introduced in the upcoming release. In the meantime you can install paper from the main branch to have that functionality.

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material-ui-next Responsive Drawer missing border
It is set to 430 by default so that it fits within the demo page of the documentation. import React from 'react'; import...
Read more >
Symbol editor missing property sheet tab/drawer - PCB Design
I am using capture 17.2.2016. When i use the symbol editor i can not see the property sheet drawer / tab to edit...
Read more >
Drawer Navigator - React Navigation
Function that returns React element to render as the content of the drawer, for example, navigation items. The content component receives following props...
Read more >
14 FAH-1 H-610 POST INVENTORY - Foreign Affairs Manual
(2) Property that has been damaged or is missing has not been reported; ... to ensure the best possible stock arrangement to facilitate...
Read more >
Property Drawers - Unity - Manual
Class in the Inspector without (left) and with (right) custom Property Drawer. You can attach the Property Drawer to a Serializable class by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found