From 627f1246dbcbe9f734c9f46160e294736d8d2230 Mon Sep 17 00:00:00 2001 From: Mekan1206 Date: Tue, 2 Jun 2026 12:36:04 +0500 Subject: [PATCH] working --- app.json | 3 ++- src/app/index.tsx | 26 ++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/app.json b/app.json index 0312229..e435300 100644 --- a/app.json +++ b/app.json @@ -8,7 +8,8 @@ "scheme": "ugrat", "userInterfaceStyle": "automatic", "ios": { - "icon": "./assets/expo.icon" + "icon": "./assets/expo.icon", + "bundleIdentifier": "com.nurmuhammet.ali.ugrat" }, "android": { "adaptiveIcon": { diff --git a/src/app/index.tsx b/src/app/index.tsx index e1a4e53..8aee30b 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -4,7 +4,7 @@ import AsyncStorage from '@react-native-async-storage/async-storage'; import { Stack, router } from 'expo-router'; import { useKeepAwake } from 'expo-keep-awake'; import io from 'socket.io-client'; -import SendDirectSms from 'react-native-send-direct-sms'; +import { SendDirectSms } from 'react-native-send-direct-sms'; export default function DashboardScreen() { useKeepAwake(); // Keep the screen awake @@ -108,7 +108,7 @@ export default function DashboardScreen() { const targetPhone = data.phone || '+993 61 92 92 48'; if (Platform.OS === 'android') { - SendDirectSms.sendDirectSms(targetPhone, data.message) + SendDirectSms(targetPhone, data.message) .then((res: any) => { addLog(`SMS sent successfully to ${targetPhone}`); socket.emit('sms_status', { id: data.id, status: 'sent' }); @@ -157,7 +157,12 @@ export default function DashboardScreen() { - Activity Log + + Activity Log + setLogs([])} style={styles.clearButton}> + Clear + + item.id} @@ -222,11 +227,24 @@ const styles = StyleSheet.create({ color: '#333', fontWeight: '600', }, + logHeader: { + flexDirection: 'row', + justifyContent: 'space-between', + alignItems: 'center', + paddingRight: 15, + marginBottom: 10, + }, + clearButton: { + padding: 5, + }, + clearButtonText: { + color: '#208AEF', + fontWeight: 'bold', + }, logTitle: { fontSize: 18, fontWeight: 'bold', marginLeft: 15, - marginBottom: 10, color: '#333', }, logList: {