Comments (7)
Yes. It will give you an error for what I said on my previous comment, is not a component but a module. Let me work on a poc for the buttons and then I'll upload it after working. ð
from react-native-month-year-picker.
Hey man, great job! The neutral button is working as intended.
Thank you so much for this new feature. ð
from react-native-month-year-picker.
Hello @apgsn! Thanks for using the library! Hrmm interesting change request...the array you're suggesting could work for iOS out of the box, the issue with will be for Android and the dialog implementation I'm using. It will take me a little more to refactor to inflate the Dialog with custom buttons. An easy way would be to add an optional third button (called neutral on Android). Let me know your thoughts.
from react-native-month-year-picker.
I was able to hack an extra button in iOS by adding it as a child of your component, but Android gives me an error so it's impossible right now to do it.
I'd say any solution that gives me an extra button on both platforms is golden.
Another idea would be to give the users a way to import the bare calendars and use them as they please without extra modals, buttons, or fade animations.
from react-native-month-year-picker.
Again the issue here is Android ðĪŠ. You can have the iOS bare component right now, importing the ViewComponent directly (without the wrapper). On Android this cannot be done because is not a component, but a module that fires a Java method. To have the bare Android it will require a huge refactor.
from react-native-month-year-picker.
I was digging through the code and saw that, bummer. But there's still a way to add a neutral button, right?
from react-native-month-year-picker.
@apgsn check new version 1.5.0 and let me know your thoughts about the new button. I will work next on a decouple version of the component, to give the freedom to use it anywhere, but leaving the Dialog/Modal available through props.
from react-native-month-year-picker.
Related Issues (20)
- selectedDate not working HOT 1
- Is there a option to show only years? HOT 1
- A problem occurred configuring project ':react-native-month-year-picker'. HOT 2
- Hi, is there any way to change month and year columns position? HOT 1
- Is it possible to have an update for an option to force it to use gregorian calendar or any calendar?
- Error when opening month year picker then backgrounding app HOT 3
- Compile issue for Android HOT 2
- Plugin with id 'maven' not found HOT 6
- [android] Build error. Gradle 7 support. HOT 8
- update npm package
- Ui Breaking for Longer Text HOT 3
- Issue on Android with version 1.8.2 HOT 4
- Could not resolve com.facebook.react:react-native:+ HOT 2
- Month Automatically jumping back to where it is being moved HOT 4
- build app fail HOT 4
- Error when building app - Could not resolve all files for configuration ':react-native-month-year-picker:implementation' HOT 6
- Any plans to make this package compatible with Expo/Expo Go? HOT 1
- How to show only year? HOT 1
- UI break in iOS HOT 1
- Override theme HOT 2
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 react-native-month-year-picker.