:fireworks: Clean and minimalist React Native template for a quick start with TypeScript and so much more components.
-
getDeviceId : Get device id
const deviceId = getDeviceId();
-
setAppBadges : Set app badges (IOS)
const countBadges = 10;
setAppBadges(countBadges);
-
clearNotification : Clear notification on notification center
clearNotification();
-
clearCache : Clear cache folder
clearCache();
-
checkChannelExist : Check channel Exist (Android)
const exist: boolean = await checkChannelExist(channelId);
-
deleteChannel : Delete channel (Android)
deleteChannel();
-
createChannel : Create channel (Android)
type Channel = {
channelId: string;
channelName: string;
channelDescription?: string;
playSound?: boolean;
soundName?: string;
importance?: "DEFAULT" | "HIGH" | "MAX" | "LOW" | "MIN" | "NONE" | "UNSPECIFIED" | undefined;
vibrate?: boolean;
};
createChannel(channel: Channel);
-
fixImageRotation : Fix image rotate when upload
type Image = {
uri: string;
};
type ImageResponse = {
uri: string;
name: string;
};
const fixedImage = await fixRotation(image: Image);