Skip to content

Conversation

vishalnarkhede
Copy link
Contributor

@vishalnarkhede vishalnarkhede commented Aug 22, 2019

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

React native introduced autolinking behaviour, so packages don't need to be linked manually. And RN does this using cocoapod. All the dependencies are auto-linked according to their pod configuration. But for this to work, we need to have cocoapods configured for our project. So that, when consumer installs our SDK, then pods of dependencies of our sdk will also be installed on his end when he does pod install. But our project is kind of pure js project ... we don't really have any ios/android directories.

  1. So either we can make it native project (with ios/android directories). But I don't think it makes sense, since we don't really have any native code.

  2. Other option is to take following dependencies out of our project and ask consumer to install it on their end (on application level).

  • netinfo
  • react-native-image-picker
  • react-native-document-picker

I am opting for option 2. This is something similar what react-navigation library has done as well. They also have pure-js library for react-native. Thus to support RN 0.60, they separated out react-native-gesture-handler.

TODO: Currently testing things for android.

Update

Works fine for andoirdX after using jetifier

@vishalnarkhede vishalnarkhede force-pushed the vishal/compatible-with-rn-60 branch from cf84585 to d17fedd Compare August 26, 2019 11:21
@vishalnarkhede vishalnarkhede marked this pull request as ready for review August 26, 2019 13:49
@vishalnarkhede vishalnarkhede force-pushed the vishal/compatible-with-rn-60 branch from 42a2570 to c0f7b1e Compare August 26, 2019 14:47
@vishalnarkhede vishalnarkhede merged commit f4657b3 into master Aug 26, 2019
@virdesai virdesai deleted the vishal/compatible-with-rn-60 branch November 7, 2020 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants