
I create really simple expo app just to get listing todos data from appwrite, its 100% fine when i build it in development profile, but when i try to build using preview profile, the app just blank, nothing showing.

my code:
export default function Index() { const [todos, setTodos] = useState<any>([]); useEffect(() => { const fetchTodos = async () => { const todos = await getTodos(); if(todos){ setTodos(todos); }
} fetchTodos(); }, []);
return ( <View style={{ flex: 1, justifyContent: "center", alignItems: "center", }} > <Text>Todos:</Text> {todos.length > 0 ? ( todos.map((todo: any) => ( <TouchableOpacity key={todo.$id} style={{ padding: 10 }}> <Text>{todo.title}</Text> </TouchableOpacity> )) ) : ( <ActivityIndicator size="large" /> )}
</View>
); }
Recommended threads
- Stuck at pinging the server to finish ad...
I'm not using the starter app and I'm not sure how to finish connecting my app to Appwrite.io. Is there a CURL command I can run to finish setup?
- Trouble with emailVerification(appname:/...
[AppwriteException: Invalid `url` param: Invalid URI. Register your new client (app) as a new platform on your project console dashboard]. i previously had ema...
- 500Internal Error
console errors fra.cloud.appwrite.io/v1/console/variables:1 Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID console.js:36 TypeError: Failed to fetch...
