How darkwaqar/pet-adoption-clone works
Project type and purpose
• This is a front-end mobile (and web) application built with React Native / Expo in TypeScript.
• It’s a “Real Estate Clone” intended to display a landing page, a home listings screen, property details, and a user profile, with drawer- and stack-based navigation.
File structure
• Entry points:
• index.js – Expo’s bootstrap for native & web
• App.tsx – root component, wraps NavigationContainer
• Configuration:
• app.json – Expo manifest
• babel.config.js – includes Reanimated plugin
• tsconfig.json – TypeScript compiler settings
• metro.config.js – Metro bundler settings
• Navigation layer:
• navigation/DrawerNavigator.tsx
• navigation/StackNavigator.tsx
• UI screens:
• screens/HomeScreen.tsx
• screens/DetailsScreen.tsx
• screens/ProfileScreen.tsx
• Reusable components:
• components/CustomDrawerContent.tsx
• components/DrawerScreenContainer.tsx
• Static resources and data:
• constants/pets.js – mock data for listings
• Package manifests:
• package.json / package-lock.json – dependencies and scripts
README for additional insights
• Uses Expo template for blank TypeScript
• Adds web support via react-native-web
• Employs React Navigation (native, stack, drawer, bottom-tabs)
• Integrates gesture-handler, react-native-screens, safe-area-context
• Uses react-native-reanimated with a Babel plugin
• No backend code is present—data is mocked in constants/pets.js