mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
mobile: check if module is loaded
This commit is contained in:
@@ -81,7 +81,7 @@ export const useIsGeckoViewEnabled = () => {
|
||||
setLoading(false);
|
||||
return;
|
||||
}
|
||||
SplitModuleLoader.getInstalledModules()
|
||||
SplitModuleLoader?.getInstalledModules()
|
||||
.then((modules) => {
|
||||
if (modules?.includes("geckoview")) {
|
||||
ref.current = require("@ammarahmed/react-native-geckoview").default;
|
||||
|
||||
Reference in New Issue
Block a user