Button having only icon not working : accessoryLeft does not exist
See original GitHub issue🐛 Bug Report
I am trying to create a icon button. But according to the documentation I have to provide accessoryLeft but it doesn’t show up in the suggestions and when I try to compile it wont work also.
I get this error
TS2322: Type ‘{ accessoryLeft: (props: any) => Element; }’ is not assignable to type ‘IntrinsicAttributes & IntrinsicClassAttributes<Component<StyledComponentProps & ButtonProps, any, any>> & Readonly<…> & Readonly<…>’. Property ‘accessoryLeft’ does not exist on type ‘IntrinsicAttributes & IntrinsicClassAttributes<Component<StyledComponentProps & ButtonProps, any, any>> & Readonly<…> & Readonly<…>’.
To Reproduce
Steps to reproduce the behavior:
- Use sample code for icon button
Expected behavior
Link to runnable example or repository (highly encouraged)
https://akveo.github.io/react-native-ui-kitten/docs/assets/playground-build/#/ButtonGroupWithIcons
UI Kitten and Eva version
Package | Version |
---|---|
@eva-design/eva | |
@ui-kitten/components | x |
Environment information
System:
OS: macOS 10.15.3
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 12.16.1 - /usr/local/bin/node
Yarn: 1.22.1 - ~/.yarn/bin/yarn
npm: 6.13.4 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6241897
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Finding the buttons on the screen that have no text for the test
I am trying to write the tests for the NavBar component (using react-native-testing-library) that has several buttons that are basically just ...
Read more >Accessible Icon Buttons - Sara Soueidan
An icon button is an icon that triggers some sort of action on the page. More accurately, technically speaking, an icon button is...
Read more >Buttons in your Gmail toolbar - Google Support
Change your buttons to text instead of icons · Open Gmail . · In the top right, click Settings Settings and then See...
Read more >start button not working no text on icons on desktop
Regarding start button, try to use On-Screen Keyboard and check what happens. Hope this information is helpful. Please do let us know if...
Read more >Do you need an ICON ONLY button without screwing up the ...
The first consideration is: do you really? If you can, having text next to your icons is proven over and over again to...
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
You using the latest but the documentation you use is for v5. See the switcher at the top.
@LakshanKarunathilake what kind of change?