Skip to content

x39OME/Fruit-App-Ui-React-Native

Repository files navigation

Fruit App Ui React Native

Preview Final Project

Home Screen

 Home

Product Screen

 Product

Cart Screen

 Cart

What did we use in the project?

Steps

  • npx create-expo-app fruit-App-Ui
  • npm i nativewind
  • npm i --dev tailwindcss@3.3.2
  • npx tailwindcss init
  • npm install @react-navigation/native
  • npx expo install react-native-screens react-native-safe-area-context
  • npm install @react-navigation/native-stack
  • npm i react-native-responsive-screen
  • npm i react-native-heroicons
  • npm i react-native-heroicons react-native-svg
  • npm i react-native-star-rating
  • npm i react-native-star-rating-widget
  • npm i deprecated-react-native-prop-types@2.2.0
  • npx expo install --fix
  • npx expo install
  • expo install --fix
// tailwind.config.js
module.exports = {
- content: [],
+ content: ["./App.{js,jsx,ts,tsx}", "./<custom directory>/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
}

  content: [
    "./App.{js,jsx,ts,tsx}", 
    "./screens/**/*.{js,jsx,ts,tsx}",
    "./components/**/*.{js,jsx,ts,tsx}"
  ],

3. Add the Babel plugin

Modify your babel.config.js

// babel.config.js
module.exports = function (api) {
  api.cache(true);
  return {
    presets: ["babel-preset-expo"],
+   plugins: ["nativewind/babel"],
  };
};

Run The Project

  • Download
  • Open The Project
  • Terminal
  • npm i
  • npx expo
  • -w or Open Expo App On your Phone

Error

ERROR ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ViewPropTypes, migrate to the 'deprecated-react-native-prop-types' package.

      - npm i deprecated-react-native-prop-types@2.2.0
  • Package react-star-ratings deprecated

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published