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.

Enable style prop array values

See original GitHub issue

Array doesn’t work on Button.

<Button style={[styles.base, styles.background]} />

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
sanketsahucommented, Jun 12, 2016

@steida We are going to fix that in the next release. @sankhadeeproy007 Ideally, the prototype of the style property of all the NativeBase component should be exactly like the one provided by React Native.

0reactions
iamraphsoncommented, May 13, 2017

@sankhadeeproy007 this is not working on V2.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

'style' prop does not accept arrays. · Issue #575 - GitHub
The styles do not get applied when arrays are passed to any component. The style prop of react-native components does accept arrays.
Read more >
Reactjs, Styling each element of array with different styles
I want to create an array with some elements ...
Read more >
Styles - 30 Days of React Native - Fullstack.io
React Native lets us pass an array of styles to a component to accomplish the same thing. When we pass an array of...
Read more >
Style - React Native
With React Native, you style your application using JavaScript. All of the core components accept a prop named style. The style names and ......
Read more >
How To Style React Components | DigitalOcean
In this tutorial, you'll learn three different ways to style React components: plain Cascading Style Sheets (CSS), inline styles with ...
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 Hashnode Post

No results found