Initial import: Music_Server, MusicFree, catalog-sync
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { NativeModule, NativeModules } from "react-native";
|
||||
|
||||
interface INativeUtils extends NativeModule {
|
||||
exitApp: () => void;
|
||||
checkStoragePermission: () => Promise<boolean>;
|
||||
requestStoragePermission: () => void;
|
||||
isIgnoringBatteryOptimizations: () => Promise<boolean>;
|
||||
requestIgnoreBatteryOptimizations: () => Promise<boolean>;
|
||||
getWindowDimensions: () => { width: number, height: number }; // Fix bug: https://github.com/facebook/react-native/issues/47080
|
||||
}
|
||||
|
||||
const NativeUtils = NativeModules.NativeUtils;
|
||||
|
||||
export default NativeUtils as INativeUtils;
|
||||
Reference in New Issue
Block a user