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.

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<…>’.

Screenshot 2020-04-20 at 20 26 30

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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
artyorshcommented, Apr 20, 2020

You using the latest but the documentation you use is for v5. See the switcher at the top. image

0reactions
artyorshcommented, Apr 20, 2020

@LakshanKarunathilake what kind of change?

Read more comments on GitHub >

github_iconTop 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 >

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