react-native-calendar-heatmap icon indicating copy to clipboard operation
react-native-calendar-heatmap copied to clipboard

Unify version for React and React-Native

Open mnlbox opened this issue 5 years ago • 3 comments

Hi guys, As I see in package.json it seems this package has a little dependency to React-Native. Just a react-native-svg package rather than web svg and a ScrollView and some styles. https://github.com/ayooby/react-native-calendar-heatmap/blob/237cdd79e334176461b812bda954e6be03b4593b/package.json#L27 https://github.com/ayooby/react-native-calendar-heatmap/blob/237cdd79e334176461b812bda954e6be03b4593b/lib/src/CalendarHeatmap.js#L4

Is it possible to get these values as some props and unify this package and React Version? For example some prop like: svg-g-component then we can pass <g /> in react and <G /> from react-native-svg in react-native apps. We can also have some default value. I think it's simpler to maintain just one package. It's just a question guys :wink: I don't know is it possible or not. :thinking:
I ask because I see this approach in some package for example: https://github.com/pinqy520/mobx-persist#createconfig

mnlbox avatar Dec 15 '19 08:12 mnlbox

Nice idea! I will look for it :)

WrathChaos avatar Dec 15 '19 15:12 WrathChaos

@ayooby If you have time, can you take care of this issue? I'm having a touch week

WrathChaos avatar Dec 18 '19 09:12 WrathChaos

@WrathChaos Hey,

I just migrated to Copenhagen and I have too many things to do(sorry). maybe on holidays.

ayooby avatar Dec 21 '19 10:12 ayooby