Skip to content

compatible patch for react-native : 0.81.5 version #376

@manishgarkar2

Description

@manishgarkar2

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-audio@4.3.0 for the project I'm working on.

/node_modules/react-native-audio/android/build.gradle

dependencies {

  • compile fileTree(include: ['*.jar'], dir: 'libs')
  • compile 'com.android.support:appcompat-v7:${supportVersion}'
  • compile 'com.facebook.react:react-native:+'
  • implementation fileTree(include: ['*.jar'], dir: 'libs')
    +// implementation 'com.android.support:appcompat-v7:${supportVersion}'
  • implementation "androidx.appcompat:appcompat:1.1.0"
  • implementation 'com.facebook.react:react-native:+'
  • implementation "androidx.legacy:legacy-support-v4:1.0.0"
    }

/node_modules/react-native-audio/android/src/main/java/com/rnim/rn/audio/AudioRecorderManager.java

-import android.support.v4.app.ActivityCompat;
-import android.support.v4.content.ContextCompat;
+import androidx.core.app.ActivityCompat;
+import androidx.core.content.ContextCompat;

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions