@@ -51,8 +51,8 @@ public class MainApplication extends Application implements ReactApplication {
5151 @Override
5252 public void onCreate () {
5353 // Place this above any other RN related initialization
54- // When AudioType is omitted, it'll default to CommunicationAudioType
55- // use MediaAudioType if user is only consuming audio, and not publishing
54+ // When AudioType is omitted, it'll default to CommunicationAudioType.
55+ // Use MediaAudioType if user is only consuming audio, and not publishing.
5656 LiveKitReactNative . setup(this , new AudioType .CommunicationAudioType ());
5757
5858 // ...
@@ -66,11 +66,11 @@ Or in your **MainApplication.kt** if you are using RN 0.73+
6666import com.livekit.reactnative.LiveKitReactNative
6767import com.livekit.reactnative.audio.AudioType
6868
69- class MainActivity : ReactActivity () {
70- override fun onCreate (savedInstanceState : Bundle ? ) {
69+ class MainApplication : Application , ReactApplication () {
70+ override fun onCreate () {
7171 // Place this above any other RN related initialization
72- // When AudioType is omitted, it'll default to CommunicationAudioType
73- // use MediaAudioType if user is only consuming audio, and not publishing
72+ // When AudioType is omitted, it'll default to CommunicationAudioType.
73+ // Use MediaAudioType if user is only consuming audio, and not publishing.
7474 LiveKitReactNative .setup(this , AudioType .CommunicationAudioType ())
7575
7676 // ...
0 commit comments