
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
- I had a new error pop up today when test...
I've been working on my app, it worked fine previously but now I recieve Invalid Origin: Register your new client as a new iOS platform on your project console ...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
