androidreact-nativeandroidxnpxandroid-jetifier

What is the meaning of -r in the command line of npx jetify -r


What is -r in the command line of npx jetify -r

I need to know the npx jetify -r what does it do?

I have set a script in package.json as

postinstall: npx jetify -r

Note: I am using the latest react-native (0.63)

But it have passed in all local builds. But it get failed in the cloud build of app circle.

I need to fix the below issues

    node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/RNCalendarEvents.java:104: error: cannot find symbol
    
            int writePermission = ContextCompat.checkSelfPermission(reactContext, Manifest.permission.WRITE_CALENDAR)
node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/RNCalendarEvents.java:13: error: package android.support.v4.content does not exist

import android.support.v4.content.ContextCompat;

Solution

  • -r is means for reverse mode

    what reverse mode ?

    like u must not migrate to AndroidX yet, but libraries migrated and ship using AndroidX