I am integrating react native into existing android app by following these steps . I also install expo modules using this. In my android app,I have app compat version 1.5.1 implementation 'androidx.appcompat:appcompat:1.5.1'. Before integrating react native, the AppCompatActivity class was extended from ComponentActivity version 1.5.1. But after integrated, the ComponentActivity was downgrade to 1.1.0. I also added implementation 'androidx.activity:activity:1.5.0', but it didn't work. So how I can force AppCompatActivity depend with androidx.activity 1.5.0.
You can see three different dependencies version here.
