Having issues with android where giphy keyboard won't fire up, after some debugging, found out that problem lies in GiphyModule.kt line 70.
val activity = reactContext.currentActivity as? ReactActivity ?: return
If app is using react-native-navigation library, MainActivity class is extends to NavigationActivity instead of ReactActivity, and since NavigationActivity extends AppCompatActivity, so we have to cast reactContext.currentActivity as? AppCompatActivity
Not sure whether this is the correct solutions, as I am not very good in Native Android/Kotlin, if anyone can take a look at this and update code would be great
Having issues with android where giphy keyboard won't fire up, after some debugging, found out that problem lies in GiphyModule.kt line 70.
val activity = reactContext.currentActivity as? ReactActivity ?: return
If app is using react-native-navigation library, MainActivity class is extends to NavigationActivity instead of ReactActivity, and since NavigationActivity extends AppCompatActivity, so we have to cast reactContext.currentActivity as? AppCompatActivity
import androidx.appcompat.app.AppCompatActivity;
val activity = reactContext.currentActivity as? AppCompatActivity ?: return
Not sure whether this is the correct solutions, as I am not very good in Native Android/Kotlin, if anyone can take a look at this and update code would be great