react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

This project is working but seems outdated. Which fork to use?

Open donni106 opened this issue 4 years ago • 26 comments

I found different forks in the issues here and I ask myself, which one to use. All seems to have implemented the FlatList instead of ListView to address certain problems.

  1. @riyga25 https://github.com/riyga25/react-native-modal-dropdown
  2. @marshallshen https://github.com/BuildU/react-native-modal-dropdown
  3. @siemiatj https://github.com/siemiatj/react-native-modal-dropdown

3 seems to be mostly updated. 2 seems to be more up to date than 1. From this point of view, I would go with @siemiatj's version?

There is an open issue, created one month ago: https://github.com/sohobloo/react-native-modal-dropdown/issues/247 Is this a blocker?

donni106 avatar Jun 09 '20 11:06 donni106

Looks like it. Will fix it later today.

siemiatj avatar Jun 09 '20 11:06 siemiatj

@siemiatj Perhaps it's better to create a new repo and not a fork, since it's not possible to open issues there.

Also, I am not able to run the example. Is it possible to upgrade the example to 0.62.2?

nelsonprsousa avatar Jun 11 '20 22:06 nelsonprsousa

@donni106 Thanks for the list. @siemiatj Thanks for this version. It works.

Everyone, I being a newbie, it wasn't easy for me to install a PR. This is how to install @siemiatj's version: npm install --save https://github.com/siemiatj/react-native-modal-dropdown

Bilal-Abdeen avatar Jun 13 '20 22:06 Bilal-Abdeen

@siemiatj Perhaps it's better to create a new repo and not a fork, since it's not possible to open issues there.

Also, I am not able to run the example. Is it possible to upgrade the example to 0.62.2?

Created a clone repo (same url) and will use that from now on.

siemiatj avatar Jun 17 '20 00:06 siemiatj

Thanks @siemiatj. And you kept the old fork for history here: https://github.com/siemiatj/react-native-modal-dropdown-legacy

I will create an issue in the new one.

donni106 avatar Jun 17 '20 08:06 donni106

We should change the conencted repository on npm packages to @siemiatj's one. It would be easier to install and other people will find the updated repository faster. Has anybody expericence with npm registry? Is this even possible to contact them to change a package repository? Current here: https://www.npmjs.com/package/react-native-modal-dropdown

donni106 avatar Jun 22 '20 08:06 donni106

We should change the conencted repository on npm packages to @siemiatj's one. It would be easier to install and other people will find the updated repository faster. Has anybody expericence with npm registry? Is this even possible to contact them to change a package repository? Current here: https://www.npmjs.com/package/react-native-modal-dropdown

I believe repository is simply taken from repository field of package.json once you npm publish it. Also there can't be two packages of the same name. I thing what you're asking for is @sohobloo to either remove the package from npm (so it can be published by @siemiatj), or somehow hand it over. Or @siemiatj can rename it, making it effectively a new npm package.

Edit: Found more on taking over packages here: https://wlach.github.io/blog/2017/07/taking-over-an-npm-package-sanity-prevails/ it might be a matter of one email.

kub1x avatar Jun 30 '20 11:06 kub1x

I think it'd be easiest to just create a new npm package as @sohobloo seems to have abandoned this ship. But I'll try to reach out to both him and npm first.

siemiatj avatar Jun 30 '20 23:06 siemiatj

@Bilal-Abdeen Thanks a lot for suggestion. It works! @siemiatj Thanks a lot for this version. Please maintain this version.

I added it in my project and it works! Thanks a lot!

Amol-B-Patil avatar Jul 21 '20 07:07 Amol-B-Patil

Thanks, @siemiatj . If you can't update this package by contacting npm, you really should upload your version as a new package.

ftzi avatar Jul 25 '20 21:07 ftzi

I've just upgraded my app to RN 0.63.2 and added the @siemiatj version - all works apart from nothing happens when I select a row - any ideas what's causing that?

djpetenice avatar Aug 04 '20 16:08 djpetenice

@siemiatj Updating the dropdown options dynamically shows loading icon instead of the updated options.

ngsayjoe avatar Aug 04 '20 22:08 ngsayjoe

I've just upgraded my app to RN 0.63.2 and added the @siemiatj version - all works apart from nothing happens when I select a row - any ideas what's causing that?

Had the same problem.

I removed TouchableOpacity that was wrapping my component passed to renderRow prop.

olehk-srs avatar Aug 13 '20 11:08 olehk-srs

Try this, added support for right component / dropdown icon and full width https://github.com/Kishanjvaghela/react-native-modal-dropdown

Kishanjvaghela avatar Oct 26 '20 12:10 Kishanjvaghela

@Kishanjvaghela do you want to provide your new features as PR to https://github.com/siemiatj/react-native-modal-dropdown?

donni106 avatar Oct 26 '20 13:10 donni106

@siemiatj any news about the npm package? It feels like it's time to move on. Not trying to push, just showing interest for this thing to be sorted out.

kub1x avatar Oct 27 '20 16:10 kub1x

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

tim92109 avatar Nov 16 '20 21:11 tim92109

Please update the following components: %s, ModalDropdown

tim92109 avatar Nov 16 '20 21:11 tim92109

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. Please update the following components: %s, ModalDropdown

@tim92109 Please read the comments (or the topic of the discussion you are posting to) first. This project is outdated. Most actively maintained fork can be found here: https://github.com/siemiatj/react-native-modal-dropdown

kub1x avatar Nov 16 '20 22:11 kub1x

@kub1x ok thx

tim92109 avatar Jan 17 '21 15:01 tim92109

Just wanted to let you know that I successfully took over the npm package and published a new version under the same name.

siemiatj avatar Feb 10 '21 23:02 siemiatj

Awesome @siemiatj ! Stoked to use it again

tim92109 avatar Feb 11 '21 01:02 tim92109

Hello guys, is there any way I can know which option is selected at a given moment ? I've been struggling , haven't figured it out yet

ghetinavlad avatar May 04 '21 22:05 ghetinavlad

Hello guys, is there any way I can know which option is selected at a given moment ? I've been struggling , haven't figured it out yet

You can use the onSelect prop and pass a method, for example a setter for a state variable, that you can use elsewhere. Please have a look at the examples, where you can find usages in dropdown_4, dropdown_5 and dropdown_6. Hope that helps.

donni106 avatar May 12 '21 10:05 donni106

Hello guys, is there any way I can know which option is selected at a given moment ? I've been struggling , haven't figured it out yet

You can use the onSelect prop and pass a method, for example a setter for a state variable, that you can use elsewhere. Please have a look at the examples, where you can find usages in dropdown_4, dropdown_5 and dropdown_6. Hope that helps.

Thanks for the help, got it.

ghetinavlad avatar May 13 '21 10:05 ghetinavlad

Anyone here now ? Why I can't add Icon into input field in spite of I have used renderRightComponent like this image

Can anyone help me to solve this problem ?

HoangHieuHBR avatar Dec 22 '23 07:12 HoangHieuHBR