Logo Detection App
My first React Native project, built to learn mobile input and connect an Expo interface to a logo-detection API.

Yogo was my first React Native project. I chose a small end-to-end workflow that would let me practice native layout, image selection, and API integration together. The goal was to select an image or paste a URL, then get an understandable result within the same conversation.
Learning mobile layout through a chat interface
I used FlatList for messages, with a scroll-to-end effect when new content arrives. KeyboardAvoidingView switches behavior between iOS and other platforms so typing does not cover the composer. The result replaces the waiting message and distinguishes between a successful logo match, no detected logo, and an API failure.
return (
<KeyboardAvoidingView
style={styles.container}
behavior={Platform.OS === "ios" ? "padding" : "height"}
keyboardVerticalOffset={Platform.OS === "ios" ? 50 : 0}
>
<ShareAndSave link={latestLink} />
<FlatList
style={styles.chatContainer}
showsVerticalScrollIndicator={false}
contentContainerStyle={{ padding: 16 }}
ref={flatListRef}
data={message}
keyExtractor={item => item.id}
renderItem={({ item }) => (
<MessageBubble
role={item.role}
text={item.text}
imageUri={item.imageUri}
link={item.link}
/>
)}
/>
<SearchBar
onSubmitUrl={handleSubmitUrl}
onPickImage={handlePickImage}
/>
</KeyboardAvoidingView>Putting image recognition behind a small API
The Expo client posts a URL or data URI as JSON and sends browser-selected files as multipart FormData. The Express endpoint accepts those payloads and calls Google Cloud Vision. I treated upload and detection as two layers so the conversation can handle an asynchronous request without needing to know the details of the vision provider.
// CASE 1: Remote URL
if (typeof image === "string" && image.startsWith("http")) {
const res = await fetch(`${API_BASE_URL}/detect-logo`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ imageUrl: image }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error || `Request failed (${res.status})`);
return data;
}What I learned
This project made native layout and network behavior feel connected. A successful API call still needed a clear loading state, a visible result, and a composer that remained usable when the keyboard opened.