document-picker
                                
                                 document-picker copied to clipboard
                                
                                    document-picker copied to clipboard
                            
                            
                            
                        Need to Change Picker theme
Help needed to change picker theme
I have no idea either, on which platform?
Maybe a check at how https://github.com/kaancelen/react-native-nononsense-file-picker does it would be a good lead
Did you get anywhere with this? I'm looking to change the title bar's background color and the title text color. Thanks.
From my readings here:
https://stackoverflow.com/questions/31261129/how-to-apply-custom-theme-on-android-document-provider#comment50518592_31261129
How can I apply my app theme to document provider ? - you're not trying to change the appearance of the document provider, you're trying to change the appearance of a system app which is the middle man between the document providers and your app which is requesting a document. This will not work.
This doesn't appear to be possible. Essentially, all this React Native library is doing is calling the ACTION_OPEN_DOCUMENT Intent in Android, which opens up the OS' built-in Document Provider app. From what I understood, our app has no control over this Document Provider app. It simply calls it and when the User selects a File it closes and returns a ActivityResult to our app.
Again, from what I read, it appears that the only way to have full control over a Document Provider is to create your own by following the instructions here:
https://developer.android.com/guide/topics/providers/create-document-provider
It's not trivial but not impossible. You're essentially re-creating what the OS' Document Provider app is already doing by using the lower-level APIs and wrapping your own UI and actions into your own Document Provider Activity.
Anyway, if anybody knows more, please post because I could see this being a common issue for nearly all Users of this library.
It really blows that there is no progress to help us do this more easily after all these years. I want to revisit it in Q4 for my own needs, but not sure it's worth the effort just for Android folks
Agreed. What did you have in mind? I spent quite a bit of time trying to customize it and the only thing it seemed that we could do is create our own Document Picker.
Hello, I'm going to close this because I investigated a little and I don't believe it's possible. I was able to control the theme of other android views such as the date picker but the document-picking activity was not influenced. I believe it runs in a different process and is controlled by the system theme.
My approach did work for ios document picker and views, though, if interested you can find it here: https://github.com/vonovak/react-native-theme-control Thank you 🙂