Deliveroo Clone with REACT NATIVE! (Navigation, Implement Redux, Tailwind CSS & Sanity.io, React Native Heroicons, React Native Navigation to navigate between screens, sleek animated checkout flow)
Install my-project with expo
Installing Expo CLI
npm install --global expo-cli
Initializing the project
npx create-expo-app deliveroo-clone
cd deliveroo-clone
Install dependencies
npm install tailwindcss-react-native
npm install --save-dev tailwindcss
Tailwindcss requires a tailwind.config.js
file with the content section configured to include the paths to all of your components and any other source files that contain Tailwind class names.
// tailwind.config.js
module.exports = {
content: [
"./screens/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
// ...
};
Add TailwindProvider
at the top level of your application. The TailwindProvider
creates the context for reactive styles and the atomic style objects.
import { TailwindProvider } from "tailwindcss-react-native";
function MyAppsProviders({ children }) {
return <TailwindProvider>{children}</TailwindProvider>;
}
// babel.config.js
module.exports = {
plugins: ["tailwindcss-react-native/babel"],
};
Install dependencies
🔶 Dependency Info
Clone the project
git clone https://github.com/SashenJayathilaka/Deliveroo-Clone.git
change directory
cd Deliveroo-Clone
Install dependencies
npx expo install
Start the server
npx expo start
npx expo-optimize
(formerly expo optimize)npx expo export:web
(expo build:web
in the legacy Expo CLI).web-build/
directory. Don't edit this folder directly.npx expo export:web --help
To deploy this project run
publish your project
expo publish
Sashen - @twitter_handle - [email protected]
Project Link: https://github.com/SashenJayathilaka/Deliveroo-Clone.git