CountryLive is a React Native application that fetches news from NewsAPI and provides features such as search and categories. It uses twrnc
for styling with Tailwind-like utilities.
CountryLive.mp4
- Fetches the latest news using NewsAPI.
- Search functionality to find news articles by keywords.
- Category-based news browsing.
- Styled with
twrnc
for a seamless TailwindCSS-like experience.
- Node.js (>=18)
- npm
- Android Studio (for running on Android devices/emulators)
- Xcode (for running on iOS devices/simulators, macOS only)
-
Fork and Clone the repository:
git clone <repository-url> cd CountryLive
-
Install dependencies:
npm install
-
Install pods for iOS (macOS only):
cd ios pod install cd ..
-
Build the app:
npx react-native run-android
-
Start the Metro bundler:
npx react-native start
Note: Ensure an Android emulator is running or a physical Android device is connected.
-
Start the Metro bundler:
npx react-native start
-
In a new terminal, run:
npx react-native run-ios
Note: Ensure an iOS simulator is running or a physical iOS device is connected.
If you encounter issues, run the following command to diagnose:
npx react-native doctor
This will highlight any missing dependencies or configuration issues. Fix the reported issues and try running the app again.
src/components
: Reusable UI components.src/
: Pages.
This app uses twrnc
for styling, which provides TailwindCSS-like utilities in React Native. For more details, visit the twrnc documentation.
react-native
: ^0.76.6react
: ^18.3.1@react-navigation/native
: ^7.0.14nativewind
: ^4.1.23twrnc
: ^4.6.0react-native-heroicons
: ^4.0.0react-native-animatable
: ^1.4.0
@babel/core
: ^7.26.0@react-native-community/cli
: latesteslint
: ^8.19.0jest
: ^29.6.3typescript
: 5.0.4