diff --git a/modules/wallpaper-android/expo-module.config.json b/modules/wallpaper-android/expo-module.config.json new file mode 100644 index 0000000..e5ab67e --- /dev/null +++ b/modules/wallpaper-android/expo-module.config.json @@ -0,0 +1,6 @@ +{ + "platforms": ["android"], + "android": { + "modules": ["com.lively.wallpaper.WallpaperAndroidModule"] + } +} diff --git a/modules/wallpaper-android/src/WallpaperAndroidModule.ts b/modules/wallpaper-android/src/WallpaperAndroidModule.ts new file mode 100644 index 0000000..c74b57f --- /dev/null +++ b/modules/wallpaper-android/src/WallpaperAndroidModule.ts @@ -0,0 +1,11 @@ +import { requireNativeModule } from "expo-modules-core"; + +interface WallpaperAndroidInterface { + saveConfig(configJson: string): Promise; + setLiveWallpaper(): Promise; + isLiveWallpaperSupported(): boolean; + getCurrentConfig(): string | null; +} + +export const WallpaperAndroid = + requireNativeModule("WallpaperAndroid");