
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
- account.get() does not return userId?
after reading what i could find on sessions (https://appwrite.io/docs/references/cloud/models/session) and account (https://appwrite.io/docs/references/cloud/cl...
- OAuth Flow Interruption Due to Redirecti...
I kindly request your assistance in resolving this issue. Specifically, I would appreciate guidance on the following: How to properly set up a redirection URI ...
- Appwrite Function in Project A can not a...
I create a Appwirite function in Project A and an API Access Key in Project B. I have provided Secret key and all other Endpoint to the Appwrite Function but it...
