wonday / react-native-orientation-locker

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.
MIT License
761 stars 274 forks source link

package for RN 0.73.1 ? #284

Closed Productivix closed 11 months ago

Productivix commented 11 months ago

hi, the new version of RN , 0.73.1 affects MainActivity.java in .kt : do you please have a transcription of the commands to insert in kt ? thanks

Productivix commented 11 months ago

in reply to myself , I tested : in RN 0.73.1 in mainActivity.kt and in mainApplication.kt , I added nothing and it runs .

the-mysterious-kid commented 8 months ago

I added the following code `MainActivity.kt' instead of the one suggested in Readme

override fun onConfigurationChanged(newConfig: Configuration) { super.onConfigurationChanged(newConfig) val intent = Intent("onConfigurationChanged") intent.putExtra("newConfig", newConfig) sendBroadcast(intent) }

And it worked for me