-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from kilowatts-io/preview
Eas Updates
- Loading branch information
Showing
15 changed files
with
201 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: update | ||
on: | ||
push: | ||
branches: | ||
- preview | ||
|
||
jobs: | ||
update: | ||
name: EAS Update | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for EXPO_TOKEN | ||
run: | | ||
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then | ||
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | ||
exit 1 | ||
fi | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: yarn | ||
|
||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Publish update | ||
run: eas update --auto --channel preview |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
components/gb-live/bottom-sheet-tabs/totals-list/totals-list.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from "react"; | ||
import { View } from "react-native"; | ||
import { StyleSheet } from "react-native"; | ||
import { Button, Card, Icon, Text } from "@rneui/themed"; | ||
|
||
interface ErrorDataRetryCardProps { | ||
refetch: () => void; | ||
} | ||
export const ErrorDataRetryCard: React.FC<ErrorDataRetryCardProps> = (p) => { | ||
return ( | ||
<Card> | ||
<Card.Title>Error</Card.Title> | ||
<View style={styles.spaced}> | ||
<Text> | ||
Failed to load data from the internet. Check your internet connection | ||
and try again. | ||
</Text> | ||
</View> | ||
<Button | ||
// title="Retry" | ||
onPress={() => p.refetch()} | ||
iconPosition="right" | ||
icon={ | ||
<Icon | ||
name="refresh" | ||
type="material" | ||
size={15} | ||
color="white" | ||
/> | ||
} | ||
/> | ||
</Card> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
spaced: { | ||
paddingBottom: 20, | ||
paddingTop: 20 | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// text compoment which renders version information from expo-updates | ||
import React from "react"; | ||
import { StyleSheet, View } from "react-native"; | ||
import { Text } from "@rneui/themed"; | ||
import * as Updates from "expo-updates"; | ||
|
||
const VersionInfo: React.FC = () => { | ||
if (__DEV__) { | ||
return ( | ||
<View style={styles.view}> | ||
<Text>Development Mode</Text> | ||
</View> | ||
); | ||
} | ||
|
||
return ( | ||
<View style={styles.view}> | ||
<Text> | ||
{`Release ${Updates.releaseChannel} v${Updates.runtimeVersion} ${Updates.isEmbeddedLaunch ? "Original" : `Updated ${Updates.createdAt.toLocaleString()}`} `} | ||
</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
view: { | ||
paddingTop: 20 | ||
} | ||
}); | ||
|
||
export default VersionInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.