···11-import { StatusBar } from "expo-status-bar";
22-import { Platform, StyleSheet } from "react-native";
33-44-import { View } from "react-native";
55-import { Text } from "../components/ui/text";
66-77-export default function ModalScreen() {
88- return (
99- <View className="flex-1 items-center justify-center dark:bg-neutral-800 bg-neutral-100">
1010- <Text className="text-neutral-200 text-4xl">HELLO WORLD !!!!</Text>
1111- <Text className="text-neutral-200 text-4xl">./app/modal.tsx</Text>
1212-1313- {/* Use a light status bar on iOS to account for the black space above the modal */}
1414- <StatusBar style={Platform.OS === "ios" ? "light" : "auto"} />
1515- </View>
1616- );
1717-}
···11+import json
22+import os
33+import sys
44+55+def update_metadata():
66+ # Get CF_PAGES_URL from environment
77+ cf_pages_url = os.environ.get('CF_PAGES_URL')
88+99+ if not cf_pages_url:
1010+ print("CF_PAGES_URL environment variable not found")
1111+ sys.exit(1)
1212+1313+ # Remove 'https://' if present
1414+ if cf_pages_url.startswith('https://'):
1515+ cf_pages_url = cf_pages_url[8:]
1616+1717+ # Path to metadata file
1818+ metadata_path_pre = 'assets/client-metadata.json'
1919+ metadata_path = 'dist/client-metadata.json'
2020+2121+ try:
2222+ # Read the JSON file
2323+ with open(metadata_path_pre, 'r') as file:
2424+ metadata = json.load(file)
2525+2626+ # Replace all instances of 'alpha.teal.fm' with CF_PAGES_URL
2727+ metadata_str = json.dumps(metadata)
2828+ updated_metadata_str = metadata_str.replace('alpha.teal.fm', cf_pages_url)
2929+ updated_metadata = json.loads(updated_metadata_str)
3030+3131+ # Write the updated JSON back to file
3232+ with open(metadata_path, 'w') as file:
3333+ json.dump(updated_metadata, file, indent=2)
3434+3535+ print(f"Successfully updated {metadata_path} with {cf_pages_url}")
3636+3737+ except FileNotFoundError:
3838+ print(f"Error: {metadata_path} not found")
3939+ sys.exit(1)
4040+ except json.JSONDecodeError:
4141+ print(f"Error: Invalid JSON in {metadata_path}")
4242+ sys.exit(1)
4343+ except Exception as e:
4444+ print(f"Error: {str(e)}")
4545+ sys.exit(1)
4646+4747+if __name__ == "__main__":
4848+ update_metadata()
+4
apps/amethyst/readme.md
···7788We use [NativeWind](https://nativewind.dev/) for styling, and for UI components, we use [React Native Reusables](https://github.com/mrzachnugent/react-native-reusables).
99Would highly recommend reading the "getting started" and "guides" sections on each.
1010+1111+## Development
1212+1313+TODO