Open vonovak opened 4 years ago
Hi,
I would like to work as collaborator.
Hello @akkravikumar, Thanks for commenting! Do you have an idea of where you'd like to get involved? The way I see it, there are several categories of potential involvement:
Do you have any questions? Let me know what you think and what you prefer! Feel free to just pick a task and open a PR! Thanks for your interest!
Not able to run on android
Hi @vonovak I would like to work on fixing bugs. I had the following issue(image attached) in iOS14 when tapping on date time field. After that i fixed the issue by removing textColor props. I'm sure i can able to fix the bugs/issues
<DateTimePickerModal headerTextIOS="Pick a date & time" isVisible={datePickerVisibility} mode="datetime" onConfirm={handleConfirm} onCancel={hideDatePicker} minimumDate={new Date(moment().subtract(1, 'days'))} // textColor={"black"}. < ---- Simply remove this line then its working as expected />
@vonovak I can spend my free time on it.
@vonovak I can also spend my free time maintaining the project
I have just started using this library for my new application and this message concerned me a bit. is it ok to continue with library?
@Naturalclar hey, good to hear that, you're all over the place, don't forget to rest for a bit :D
@Yandamuri this is one of the few date picking libraries out there and several other directly depend on this one, so there isn't much choice AFAICT. If you care about the date picker in your app, you're encouraged to support the project as I outlined in the first post, thank you. :)
Hey @vonovak - I would like to help contribute to this project. I would like to help triage and resolve accessibility issues, however, please let me know if there is an additional or alternative way that I can contribute that would be more useful.
@rebeccatownsend-rally thanks for your interest! I think most people contribute to OSS because they're scratching their own itch and so solving your own problem is a great way to get started - if you have some accessibility issues that you want to tackle, please go ahead :) Otherwise, I try to keep the issue tracker more or less clean so that the issues are understandable and you should be able to go through them and find some issues that are actionable and can be implemented right away. If you open the example project, you'll be able to edit the source files and test the changes in the example app - that's the best way to get familiar with how the module works :)
I'll try to mark some issues as good-first-issue
to flag those that should be easier to start with. Thanks!
@rebeccatownsend-rally I have tagged some issues as "good first issue": https://github.com/react-native-datetimepicker/datetimepicker/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22
some are harder, some are easier, hopefully this will help someone :)
Hi @vonovak , I would like to work as a collaborator
@MuhammadArslan96 great, please see https://github.com/react-native-datetimepicker/datetimepicker/issues/313#issuecomment-718927112 for suggestions on where to start. Again, if there are questions, just ask :) Just to make it clear, I don't feel like giving repo access rights to everyone unless they have some track record already (here or in other repos), so I'd first like to see an external contribution happen from a fork and after it all works out I will give those access rights :) Hope this makes sense, thanks.
Totally understand the intent of the issue at hand. I can't begin to understand how much work it is to support a module like this. Datepickers are a PITA at the best of times, then trying to support multiple platforms on top of that.
Genuine question, is there anyway to get React Native or Expo to support this project? Especially considering they link to it from the expo docs. "Community project" or not, modules like this make Expo more appealing, and they in turn are making money off their premium offerings.
hello @cjke
is there anyway to get React Native or Expo to support this project? Especially considering they link to it from the expo (and even and RN) docs
Yes, that seems like a valid question, but the fact this library is mentioned in the documentation is about the only reason I see for why facebook or expo should support this project. Facebook and expo are already providing a TON of value by giving away a lot of their work for free and remember that they are not even using this module in their product, so why should they sponsor it? If they support this library, shouldn't they by extension also support a thousand other libs out there...?
The question that I have is, with 150k weekly npm downloads, why is it that 5 months after asking for support the only visible progress has been that we have 2 sponsors (thank you!!) with a total of $10 per month? π€ π
Everyone is just used to get all these building blocks for free, which is sad because it hampers their quality but it is what it is π€·ββοΈ And I'm not complaining btw, it's just the way I see it. I'm not married to this lib (or any other) so why should I care. π
Unfortunately a big percentage of people wouldn't even pay for all of React or React Native, so there is little chance they would pay for one module. I support a few libraries (via Pateron, as I've been doing it before Github sponsor was a thing), but I guess its not realistic either for every user to pay for every module that lines their package.json, and in turn, do you then pay a small % to every module in this libraries package.json?
I think a lot of people get into OSS for reasons other than money, such as: great for the resume, raises brand awareness (if you yourself are a studio or company), a way of giving back to other OSS developers, to scratch ones own itch while at the same time getting free testing.
I don't want to be argumentative, more, I would hate to see this library die because it didn't have enough support. I mention Expo because they offer a premium, paid service. People use Expo because it is a quick start into RN development and has a huge tool belt of modules ready to go, such as this one. Without modules like this, I would guess less people would pay for the premium Expo offering.
Anyway, I'm not too invested, I've only just started testing the waters with this module, and I typically check out the issues area before committing to a module to gauge the current activity. While I was here I thought I would leave my 2c.
I wish you well on this project and others
I guess its not realistic either for every user to pay for every module that lines their package.json
I agree and that's not what I'm calling for. But if you, as a company, pick 20 or 30 deps from your package.json and sponsor them $5 or $10 each, I think that is very much doable. Only a minority of libraries offer sponsorship options.
I think a lot of people get into OSS for reasons other than money
If I made it sound like I'm in OSS for money, then I'm sorry - that's definitely not the case π. As I outlined in the first post, I'm looking for "coding support" and / or sponsors because both ways can help.
I would hate to see this library die because it didn't have enough support.
It's not going to die, I will circle back to it every once in a while and I'm always ready to review PRs.
I wish you well on this project and others
Thanks, same to you π
Hey there, I'm taking a stab at contributing, but I can't seem to get the example app running in iOS π€¦ . Rather than sink time into debugging alone, I figured I would reach out in case there is a known solution. The issue is:
/Users/rebecca.townsend/Documents/datetimepicker/ios/RNDateTimePicker.m:10:9: fatal error: 'React/RCTUtils.h' file not found
Any thoughts?
Have already installed pods. Basically just following the instructions in the read.me for running the example app.
@rebeccatownsend-rally did you run yarn
in the root of the repo to install deps? I should add that step
also, you need to open the xcodeworkspace file in example/ios
@rebeccatownsend-rally I opened a PR for docs improvement, does that help? https://github.com/react-native-datetimepicker/datetimepicker/pull/397/files
@vonovak Thanks for updating the docs. I am still not able to run the example for iOS, unfortunately. The error is the same /Users/rebecca.townsend/Documents/datetimepicker/ios/RNDateTimePicker.m:10:9: fatal error: 'React/RCTUtils.h' file not found
I'm assuming that you're not able to reproduce this. I wonder if there's an incompatibility with my tools versioning. I'm using XCode v12.4, node v14.1, npx v6.14.4, cocoapods v1.10.1
Wonder what versions you are using, or if you know of any compatibility issues?
@rebeccatownsend-rally sorry, there was a problem with the yarn run:ios
script, fix is here. I never really used it tbh which is why it didn't work. In the mean time, you can just open the example project (example/ios/example.xcworkspace/) in Xcode and build from there, that should work just fine and you'll need to open xcode anyway to do any development. Thanks and sorry for the wrong information! π
Hi, I used this library in my recent project for client. I saw this issue and I'm open to help to contribute to this library in my free time. I would really like to fix some bugs or implement new features. I have very little open source development experience but I'm really passionate about it and will try to help as much as possible. Thanks.
hi I have this error [Unhandled promise rejection: Error: Couldn't find a 'component', 'getComponent' or 'children' prop for the screen 'ReservationScreen'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.] like dateTimePicker is not export...
is not possible to edit Locale prop on android?
@vonovak
Hey,
I just used this package in my project and saw this post. I would love to help contribute and give back to this module since I really liked the features it provides. I could help updating the documentation and fixing bugs. Let me know what I should do to get started.
@sanathnair09 thanks for the comment. I don't really have a list of prioritized issues that should be worked on, but I remember labelling some issues as "good first issue" so you can tackle those. If you just "scratch your own itch" and work on what you like, that is perfect as well :)
@sanathnair09 thanks for the comment. I don't really have a list of prioritized issues that should be worked on, but I remember labelling some issues as "good first issue" so you can tackle those. If you just "scratch your own itch" and work on what you like, that is perfect as well :)
Hey @vonovak... as you suggested I kinda just worked on what I liked and made a documentation website for datetimepicker. The doc is currently live at https://sanathnair09.github.io/rn-datepicker-website/
let me know if this is something you would be interested in adding to the official package.
Hey, I would like to help.
hello @sanathnair09! Thanks for the comment and thanks for your patience with my answer (I was vacationing and then it took some more time to get back to OSS). That documentation website looks really nice! The documentation of the package definitely needs improvement and even new sections that would cover missing topics (eg. testing) and perhaps more examples with screenshots. I'd be happy to have the current documentation moved to the docs page you created if it is included in this repository (under the GH organization's control) and if you know you can spend some small amount of time maintaining it and just making sure it runs π Thanks again! Please let me know your thoughts.
Perhaps you could open a separate issue for this where we can discuss the details :)
@vonovak β€οΈ (for "just do it")
Was not able to add a comment to the contribution, but the RNDTP has been enormously helpful and I hope continues to be maintained!
Hi, @vonovak I have intentions of helping to fix some issues but I haven't gotten to it yet, I would definitely look into this very soon. Thanks for your work so far.
Hi I'm not expert in React Native yet, but I would love to help!
Hey @vonovak I'd like to help through code.
Hi @vonovak
Just letting you know that we use this library in a few different projects at Thinkmill and wanted to support it, because we really value your work.
So we made an initial donation and have now set up a monthly recurring one as well β€οΈ
Thanks to everyone who's contributed to the project!
Hello I'm software developer and want to contribute. Could you please share the prior issues to solve ? thanks
@firas1220 thank you for your interest! An issue that comes to my mind first is timeZoneOffsetInMinutes
being broken on Android, see eg. https://github.com/react-native-datetimepicker/datetimepicker/issues/528 https://github.com/react-native-datetimepicker/datetimepicker/issues/547
Would you like to take a look at this? Otherwise you can pick any of the open issues and try to fix one that looks interesting.
Let me know! Thank you π
@firas1220 thank you for your interest! An issue that comes to my mind first is
timeZoneOffsetInMinutes
being broken on Android, see eg. #528 #547Would you like to take a look at this? Otherwise you can pick any of the open issues and try to fix one that looks interesting.
Let me know! Thank you π
It seems the project uses React Native CLI, which I'm not used to unfortenatly π’. I thought its Expo project! I'm afraid I may find difficulties while dealing with native source code and/or some configs. What do you suggest me to do?
@firas1220 RN cli is not too different from expo cli so don't worry about it :)
Have a look at the contributor guide here: https://github.com/react-native-datetimepicker/datetimepicker/blob/master/CONTRIBUTING.md and then, well, try to work your way through the problem!
It'll take some time but you can do it! π
Hey @vonovak thank you for your work.
I'm facing some issues with the latest versions 6.6.0
and 6.7.0
.
error: SyntaxError: /node_modules/@react-native-community/datetimepicker/src/androidUtils.js: Unexpected token, expected "]" (21:30)
19 | type Params = {
20 | value: Timestamp,
> 21 | display: AndroidNativeProps['display'],
| ^
22 | is24Hour: AndroidNativeProps['is24Hour'],
23 | minimumDate: AndroidNativeProps['minimumDate'],
24 | maximumDate: AndroidNativeProps['maximumDate'],
error: SyntaxError: /node_modules/@react-native-community/datetimepicker/src/DateTimePickerAndroid.android.js: Unexpected token, expected "]" (127:42)
125 | }
126 |
> 127 | function dismiss(mode: AndroidNativeProps['mode']): Promise<boolean> {
| ^
128 | // $FlowFixMe - `AbstractComponent` [1] is not an instance type.
129 | return pickers[mode].dismiss();
130 | }
[Fri Nov 18 2022 10:29:48.860] ERROR [Error: TransformError SyntaxError: /node_modules/@react-native-community/datetimepicker/src/androidUtils.js: Unexpected token, expected "]" (21:30)
19 | type Params = {
20 | value: Timestamp,
> 21 | display: AndroidNativeProps['display'],
| ^
22 | is24Hour: AndroidNativeProps['is24Hour'],
23 | minimumDate: AndroidNativeProps['minimumDate'],
24 | maximumDate: AndroidNativeProps['maximumDate'],]
[Fri Nov 18 2022 10:29:48.975] ERROR [Error: TransformError SyntaxError: /node_modules/@react-native-community/datetimepicker/src/DateTimePickerAndroid.android.js: Unexpected token, expected "]" (127:42)
I really need positiveButton
and negativeButton
props. Thank you.
hello, @Bobivankenobi you can try this option which resolved my issue.
You can use this patch-package to replace all the AndroidNativeProps['mode']
to $PropertyType<AndroidNativeProps, 'mode'>
, AndroidNativeProps['display']
to $PropertyType<AndroidNativeProps, 'display'>
and so on from your node module's android related folders and use that patch. I hope this helps.
Hello, update from version @react-native-community/datetimepicker": "3.2.0", to the latest version, on android it works fine, however on iOS it sends me the following message:
date.getTime is not a function. (In 'date.getTime()', 'date.getTime' is undefined)
"react": "^18.1.0", "react-native": "0.70.5",
<DateTimePicker
themeVariant='light'
textColor='#000000'
testID="dateTimePicker"
value={pickerSelected === 1 ? OriginalTo : OriginalFrom}
minimumDate={new Date().setMonth(new Date().getMonth() -6)}
maximumDate={new Date().setDate(new Date().getDate() + getAddDayByNameDate(handleDateUSDash(new Date())).dateAdd)}
mode={mode} // date
is24Hour={true}
display={Platform.OS === "ios" ? "spinner" : "default"}
onChange={onChange}
/>
Could you help me if you have experienced a similar error? Thank you.
Hii, I really would like to work as collaborator. Mainly because a I want override Android positiveButton.
hi there - it seems there is still recent / ongoing activity in the repo. does that mean the collaborators / financial backing was found and there isn't risk of the repo going unmaintained?
hi there - it seems there is still recent / ongoing activity in the repo. does that mean the collaborators / financial backing was found and there isn't risk of the repo going unmaintained?
Hello @matthewmturner, I try to do some "housekeeping" maintenance, mostly by reviewing PRs that appear occasionally.
As for funding, all is on the open collective and the total amount received in sponsorships now is $20 monthly. There was a company sponsor that contributed $100 / month which allowed to work on some bigger features because the balance accumulated more quickly that way. Since they withdrew the support there were no bigger developments (the last was supporting the new architecture).
There are definitely a few things in my head that would be nice to have, and a whole new story with supporting UICalendarView and MaterialDatePicker but with the current state of things, it's hard to prioritize it (it'll be best to leave it to someone who really needs it I think). π
@vonovak great thanks for information. We are interested in adding this and could potentially support. Will keep you posted as we make progress.
hi @vonovak I would help to sponsoring this package since I always use this with the agency budget. in terms of the fund, do you provide some like discord or anything that can share the progress to all of sponsorship?
hi @vonovak I would help to sponsoring this package since I always use this with the agency budget. in terms of the fund, do you provide some like discord or anything that can share the progress to all of sponsorship?
hello, thank you for your interest! I'm not sure I understand the question though; the progress that is being made is seen right here, in the package repository. :)
Hope this answers the question (?)
hello! Allow me to be personal - I'm Vojtech, one of the maintainers of the datetimepicker module (and others). I've been involved in open source around React Native for a while because I really like it. Over the course of time though, I concluded that I do not want to spend much of my free time doing open source work (features, bugfixes, issue handling, docs...) that is used in for-profit projects. Please note I'm not using this module in any project I'm currently working on.
So, allow me to say openly: I do not plan to spend my free time on maintenance of this module unless I just feel like doing it for fun (irregularly), or unless I'm compensated for it.
This module has a number of bugs, missing features and open issues that require someone's attention. There are changes that need to be done to make the module work well and make consumers (that is you / your company π ) happy. We're looking for new collaborators that would help us with these. If you're interested, please don't hesitate to contribute - we'll help you if needed. Just to make it clear, I don't feel comfortable giving repo access rights to everyone unless they have some track record already (here or in other repos), so I'd first like to see an external contribution happen from a fork and after it all works out I will give those access rights :) Not having repo access rights does not prevent anyone from contributing.
If you want to ensure continued maintenance using money instead of your time, use the links below. Sponsorships will be used to compensate the time every maintainer spends working on this project. Talk to your boss about sponsoring OSS. Your support is much appreciated!
github sponsors profile opencollective profile
If you have any questions, this is a good place to ask π
Thank you! π
For the people who are interested in contributing - I will be available to answer questions you may have but for the most part, I believe it is beneficial to follow the "just do it" advice given here: https://github.com/react-native-maps/react-native-maps/issues/3564#issuecomment-772375951