-
Notifications
You must be signed in to change notification settings - Fork 0
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 #70 from degica/dev
Dev merge to main
- Loading branch information
Showing
37 changed files
with
581 additions
and
443 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
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
Binary file not shown.
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,21 @@ | ||
import React from 'react'; | ||
|
||
import {ActivityIndicator, StyleSheet, View} from 'react-native'; | ||
|
||
const Loader = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<ActivityIndicator size="large" /> | ||
</View> | ||
); | ||
}; | ||
|
||
export default Loader; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
...StyleSheet.absoluteFillObject, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
export const PUBLISHABLE_KEY_URL = 'https://rn-komoju-app.glitch.me/serve-keys'; | ||
export const CREATE_SESSION_URL = | ||
'https://rn-komoju-app.glitch.me/create-session'; |
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,19 @@ | ||
import {Alert} from 'react-native'; | ||
import {PUBLISHABLE_KEY_URL} from './constants'; | ||
|
||
const getPublishableKey = async () => { | ||
try { | ||
const response = await fetch(PUBLISHABLE_KEY_URL); | ||
const {publishableKey} = await response.json(); | ||
|
||
return publishableKey; | ||
} catch (e) { | ||
Alert.alert( | ||
'Error', | ||
'Unable to fetch publishable Key. Is your server running?', | ||
); | ||
return null; | ||
} | ||
}; | ||
|
||
export default getPublishableKey; |
Oops, something went wrong.