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.

Weird style using default button after upgrading to 1.0.0-beta7

See original GitHub issue

I have been working using React Native Elements version 0.18.4 Everything was OK

Today, I’ve upgraded to 1.0.0-beta7 (so I can try out themes and new features) but all the button got a weird style (see the image below): whatsapp image 2018-12-11 at 19 40 12

Do you see the shadow and and the weird style of the button?

The code is the same as I had before (nothing changes):

<Button
    raised
    icon={{ name: 'cached' }}
    key={1}
    title='BUTTON WITH ICON' />,
  <Button
   
    key={2}
  />,
  <Button
    raised
    containerViewStyle={ComponentsStyle.outlineLargeButton}
    large
    key={3}
    rounded
    borderRadius={35}
    color='#336688'
    outline
    title='example'
  />`

The problem started after upgrading the version of React Native Elements.

react-native-cli: 2.0.1
react-native: 0.57.7

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
xavier-villelegiercommented, Dec 12, 2018

Hey @fgagneten 👋 Thanks for taking the time to upgrade to 1.0.0-beta7 !

The API of the Button has changed a bit because it has been fully refactored, you can see the updated API here.

The first things I see in your code:

  • borderRadius and color doesn’t exist anymore, you need to apply it through the styles
  • containerViewStyle became containerStyle

Maybe you should use the repo with next branch directly because we added back a type props that can be raised, outline and solid. This will be in the next release, and we planned to write a migration guide from to 1.0.0. Feel free to post some screens of your buttons before the update, and we can help you to get the good UI

0reactions
iRoachiecommented, Dec 18, 2018

Duplicate of #1547

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding Default Button Styles | CSS-Tricks
This is a bit surprising to me — but I hear it often enough to worry about it — is that more and...
Read more >
Button Style Before iOS 15.0 warni… | Apple Developer Forums
Been bugging me too. Discovered when you add a new button it now comes in with style Plain. Change it to "Default" and...
Read more >
Android default button styling not working - Stack Overflow
Using AppCompat 22.1.+ ( 22.2.0 should work too), I defined a Style like this: <style name="MyApp.Button.Red" parent="Base.Widget.AppCompat.
Read more >
Changelog ⚡️ FormKit — Vue Forms, Supercharged
Fixed a bug that caused default icons to never load when included directly in the configuration. Fixed a bug where a checkbox validation...
Read more >
Weird default style triggers for some basic controls like Button
DevTools will show me that the Button has Red background, but the rendering will use the IBrush "ButtonBackgroundPointerOver". I understand ...
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