Prop missing: Drawer.Item's right prop
See original GitHub issueCurrent 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:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!