From 65a9ee0f071aab1239b78c66512b5712cacf2342 Mon Sep 17 00:00:00 2001 From: anitak Date: Mon, 20 Apr 2026 12:14:17 +0530 Subject: [PATCH] some changes --- .gitea/workflows/test.yml | 45 +++++++++++++++++++++++++++++++++++++ App.tsx | 47 ++++++--------------------------------- 2 files changed, 52 insertions(+), 40 deletions(-) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..a85dfdb --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,45 @@ +name: RN APK Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install deps + run: npm install + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + + - name: Give permission + run: chmod +x android/gradlew + + - name: Build APK + run: | + cd android + ./gradlew assembleRelease + + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: app-release + path: android/app/build/outputs/apk/release/app-release.apk \ No newline at end of file diff --git a/App.tsx b/App.tsx index 5e963b1..2da3c41 100644 --- a/App.tsx +++ b/App.tsx @@ -1,45 +1,12 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * - * @format - */ - -import { NewAppScreen } from '@react-native/new-app-screen'; -import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native'; -import { - SafeAreaProvider, - useSafeAreaInsets, -} from 'react-native-safe-area-context'; - -function App() { - const isDarkMode = useColorScheme() === 'dark'; +import { View, Text } from 'react-native' +import React from 'react' +const App = () => { return ( - - - - - ); -} - -function AppContent() { - const safeAreaInsets = useSafeAreaInsets(); - - return ( - - + + App - ); + ) } -const styles = StyleSheet.create({ - container: { - flex: 1, - }, -}); - -export default App; +export default App \ No newline at end of file