SyntaxFear
SyntaxFear
PPrisma
Created by SyntaxFear on 7/22/2024 in #help-and-questions
Error: 🟥 @prisma/react-native failed to initialize, js engine: hermes
App.tsx import React, { useEffect, useState } from "react"; import { StatusBar } from "expo-status-bar"; import { Text, View, TouchableOpacity, ActivityIndicator } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { initializeDb } from "@/db"; export default function WelcomeScreen() { const [isInitialized, setIsInitialized] = useState(false); useEffect(() => { (async () => { await initializeDb(); setIsInitialized(true); })(); }, []); if (!isInitialized) { <View> <ActivityIndicator size={"large"} color={"#000"} /> </View>; } return ( <SafeAreaView className="flex-1 bg-white"> <StatusBar style="dark" /> <View className="flex-1 justify-center items-center px-6"> <Text className="text-4xl font-bold mb-6 text-center text-gray-800"> Welcome to My App! </Text> <Text className="text-lg text-gray-600 mb-8 text-center"> Get started with our amazing features and explore the app. </Text> <TouchableOpacity className="bg-blue-500 py-3 px-8 rounded-full active:bg-blue-600" onPress={() => console.log("Get Started pressed")} > <Text className="text-white font-semibold text-lg">Get Started</Text> </TouchableOpacity> </View> </SafeAreaView> ); }
3 replies