'How to implement react-native-lottie-splash with kotlin?

The official documentation only refers to modifying the MainActivity.java and MainAplication.java but in my project those files are .kt or Kotlin.

I tried porting the code to Kotlin but it's confusing since I'm not a Kotlin developer.

I'm stuck with this, any help would be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source