···1-import { StatusBar } from "expo-status-bar";
2-import { Platform, StyleSheet } from "react-native";
3-4-import { View } from "react-native";
5-import { Text } from "../components/ui/text";
6-7-export default function ModalScreen() {
8- return (
9- <View className="flex-1 items-center justify-center dark:bg-neutral-800 bg-neutral-100">
10- <Text className="text-neutral-200 text-4xl">HELLO WORLD !!!!</Text>
11- <Text className="text-neutral-200 text-4xl">./app/modal.tsx</Text>
12-13- {/* Use a light status bar on iOS to account for the black space above the modal */}
14- <StatusBar style={Platform.OS === "ios" ? "light" : "auto"} />
15- </View>
16- );
17-}
···1+import json
2+import os
3+import sys
4+5+def update_metadata():
6+ # Get CF_PAGES_URL from environment
7+ cf_pages_url = os.environ.get('CF_PAGES_URL')
8+9+ if not cf_pages_url:
10+ print("CF_PAGES_URL environment variable not found")
11+ sys.exit(1)
12+13+ # Remove 'https://' if present
14+ if cf_pages_url.startswith('https://'):
15+ cf_pages_url = cf_pages_url[8:]
16+17+ # Path to metadata file
18+ metadata_path_pre = 'assets/client-metadata.json'
19+ metadata_path = 'dist/client-metadata.json'
20+21+ try:
22+ # Read the JSON file
23+ with open(metadata_path_pre, 'r') as file:
24+ metadata = json.load(file)
25+26+ # Replace all instances of 'alpha.teal.fm' with CF_PAGES_URL
27+ metadata_str = json.dumps(metadata)
28+ updated_metadata_str = metadata_str.replace('alpha.teal.fm', cf_pages_url)
29+ updated_metadata = json.loads(updated_metadata_str)
30+31+ # Write the updated JSON back to file
32+ with open(metadata_path, 'w') as file:
33+ json.dump(updated_metadata, file, indent=2)
34+35+ print(f"Successfully updated {metadata_path} with {cf_pages_url}")
36+37+ except FileNotFoundError:
38+ print(f"Error: {metadata_path} not found")
39+ sys.exit(1)
40+ except json.JSONDecodeError:
41+ print(f"Error: Invalid JSON in {metadata_path}")
42+ sys.exit(1)
43+ except Exception as e:
44+ print(f"Error: {str(e)}")
45+ sys.exit(1)
46+47+if __name__ == "__main__":
48+ update_metadata()
+4
apps/amethyst/readme.md
···78We use [NativeWind](https://nativewind.dev/) for styling, and for UI components, we use [React Native Reusables](https://github.com/mrzachnugent/react-native-reusables).
9Would highly recommend reading the "getting started" and "guides" sections on each.
0000
···78We use [NativeWind](https://nativewind.dev/) for styling, and for UI components, we use [React Native Reusables](https://github.com/mrzachnugent/react-native-reusables).
9Would highly recommend reading the "getting started" and "guides" sections on each.
10+11+## Development
12+13+TODO