Check out example codes for "disable dark mode swift". It will help you in understanding the concepts better.

Code Example 1

if #available(iOS 13.0, *) {
          UIWindow.appearance().overrideUserInterfaceStyle = .light
      }

Learn ReactJs, React Native from akashmittal.com