Comments (14)
🎉 This issue has been resolved in version 1.13.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from picker.
Does anyone know how to change the popup background dynamically? I need to implement dark mode for my app, but I cannot change the background color dynamically. The method on stackoverflow above can only set a fixed background color.
from picker.
Why in hell we can't change de background color and text color of the Android picker (both dialog/dropdown prop) on RN?? Is it so difficult? This is ridiculous, seriously!
PS: I'm using Expo so I'm screwed..
from picker.
Does anyone know how to change the popup background dynamically? I need to implement dark mode for my app, but I cannot change the background color dynamically. The method on stackoverflow above can only set a fixed background color.
it's impossible
from picker.
hey @ArekChr can you please share more information, what you mean by biggest disaster
and what is your expected behaviour.
from picker.
Please check this example --> https://stackoverflow.com/questions/38921492/how-to-style-the-standard-react-native-android-picker/39141949#39141949
from picker.
I mean this should be possible to do inside react component, jsx.
not like here -> https://stackoverflow.com/questions/38921492/how-to-style-the-standard-react-native-android-picker/39141949#39141949
from picker.
Does anyone know how to change the popup background dynamically? I need to implement dark mode for my app, but I cannot change the background color dynamically. The method on stackoverflow above can only set a fixed background color.
it's impossible
Plz suggest what should we do ?
from picker.
Does anyone know how to change the popup background dynamically? I need to implement dark mode for my app, but I cannot change the background color dynamically. The method on stackoverflow above can only set a fixed background color.
it's impossible
Plz suggest what should we do ?
The same behavior like on iOS. dark/light mode doesn't supported on android and can't change it dynamically
from picker.
This stackoverflow post is linked everywhere regarding this issue: https://stackoverflow.com/questions/38921492/how-to-style-the-standard-react-native-android-picker/39141949#39141949 but it doesn't work for me at all whether I import from this library or right from 'react-native'.
This is my styles.xml:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- styles for android react native picker -->
<item name="android:spinnerStyle">@style/spinnerTextStyle</item>
<item name="android:spinnerItemStyle">@style/spinnerTextStyle</item>
<item name="android:spinnerDropDownItemStyle">@style/spinnerTextStyle</item>
</style>
<style name="spinnerTextStyle" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:fontFamily">@font/merriweather_family</item>
<item name="android:textSize">12dp</item>
</style>
I don't even want to do anything complicated but it doesn't work. No matter what I try.
from picker.
The same behavior like on iOS. dark/light mode doesn't supported on android and can't change it dynamically
That's right. I have to roll my own non native picker. It's not native looking already because of React Navigation.
Might as well use Flutter since it has a more consistent user interface, than my weird looking app with my native/non native components 😞
from picker.
any docs on this? I tried the example from https://github.com/react-native-picker/picker/pull/233/files#diff-12f76272c0ab68693fac6a6a5c943434480858eeac4ca45cec588bbda23efd46R21 but styles aren't applied
from picker.
I've also tried the example on both the emulator and real device and styles aren't applied on either. Any help here?
from picker.
Not working
from picker.
Related Issues (20)
- Release new version HOT 1
- Picker becomes slow when the number of Picker.Items are more than 500
- It's really hard to figure out styling HOT 1
- iOS picker styles HOT 5
- [BUG] [Android] Task uses output of task without declaring an explicit or implicit dependency HOT 1
- [Crash] Native iOS com.facebook.react.JavaScript (15): EXC_BAD_ACCESS (code=1, react native)
- Picker is not selecting 2 firts items on iOS HOT 1
- Picker freezes web app when selecting NEW item
- There are issues in the new version
- Picker is scrolling continuously when scrolled via touch
- Failed to build android after react native 0.72.3 HOT 5
- Picker is ALWAYS getting system theme (at least in Windows) HOT 1
- themeVariant is Not Working HOT 1
- Do not use this repo HOT 4
- bug: don't work: no label and no value HOT 8
- TypeError: Cannot read property 'Picker' of undefined HOT 2
- Picker 2.6+ transforms numeric values to strings HOT 4
- Selected value jumps back to first value when "Done" is tapped - Picker library v2.6.1, iOS only HOT 3
- @react-native-picker/picker could not be found within the project or in these directories
- react-native 0.71.8 with @react-native-picker/picker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picker.