
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
- New simple React Native Expo app running...
I have just created a simple RN expo app, using appwrite for the auth, however already when trying to use createEmailPasswordSession it returns "Rate limit for ...
- Storage server error
Hi! When I try to upload a video to Appwrite Storage, it gives me this error (it works with images but not with videos): ```[AppwriteException: Server Error]``...
- Adding Attributes to User
What is the best way to add attributes for a User? Do I need to create another entity with the attributes since I cant add them in the Auth service. Thx
