Skip to content

Commit

Permalink
added sheet with vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Pari Work Temp committed Aug 15, 2024
1 parent 3417a66 commit 3f4fe15
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,25 @@ jobs:
# cache: npm
# cache-dependency-path: ./mobile/package-lock.json

# - name: 🏗 Setup Expo and EAS
# uses: expo/expo-github-action@v8
# with:
# expo-version: latest
# eas-version: latest
# token: ${{ secrets.EXPO_TOKEN }}
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

# - name: 📦 Install dependencies
# working-directory: ./my_project/mobile
# run: npm install
- name: 📦 Install dependencies
working-directory: ./my_project/mobile
run: npm install

# - name: 🚀 Publish preview
# working-directory: ./my_project/mobile
# run: |
# eas update --branch="${{ github.event.deployment_status.environment_url }}" --non-interactive --auto
# echo "${{ env.BACKEND_SERVER_URL }} and ${{ github.event.deployment_status.environment_url }}"
# env:
# EXPO_PUBLIC_BACKEND_SERVER_URL: "${{ github.event.deployment_status.environment_url }}"
# EXPO_PUBLIC_ROLLBAR_ACCESS_TOKEN: "1a19e5da05b2435b802d5a81aba2bbd7"
- name: 🚀 Publish preview
working-directory: ./my_project/mobile
run: |
eas update --branch="${{ github.event.deployment_status.environment_url }}" --non-interactive --auto
echo "${{ env.BACKEND_SERVER_URL }} and ${{ github.event.deployment_status.environment_url }}"
env:
EXPO_PUBLIC_BACKEND_SERVER_URL: "${{ github.event.deployment_status.environment_url }}"
EXPO_PUBLIC_ROLLBAR_ACCESS_TOKEN: "1a19e5da05b2435b802d5a81aba2bbd7"

- name: Update EAS Config
working-directory: ./my_project/mobile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Dimensions, Image, StyleSheet, View } from 'react-native'
import logo from '@assets/tn-logo.png'
import { Text } from '@components/text'
import { BButton } from '@components/Button'
import { SheetManager } from 'react-native-actions-sheet'
import { SHEET_NAMES } from '@components/sheets'

const { height } = Dimensions.get('screen')

Expand All @@ -16,6 +19,14 @@ const styles = StyleSheet.create({
})

export const Main = () => {
const onOpenSheet = () => {
SheetManager.show(SHEET_NAMES.test, {
payload: {
input: 'Hello from payload',
},
})
}

return (
<View className="flex-grow items-center justify-center">
<View className="items-center justify-center">
Expand All @@ -26,6 +37,7 @@ export const Main = () => {
Welcome to my project
</Text>
</View>
<BButton label="Open sheet" onPress={onOpenSheet} variant="primary" />
</View>
)
}

0 comments on commit 3f4fe15

Please sign in to comment.