Wilfredo Meneses
Profesor universitario
fuente: notjustdev
Restaurants
Restaurant
Dish
useAuthContext (authUser, dbUser, setDbUser, sub)
useBasketContext(basket, basketDishes, addDishToBasket,restaurant, setRestaurant, items, subtotal, totalPrice)
Instalar dependencias
Instalar Amplify cli
npm install -g @aws-amplify/cli
import { Amplify } from 'aws-amplify'
import awsconfig from './src/aws-exports'
Amplify.configure(awsconfig)import { withAuthenticator } from "aws-amplify-react-native";
export default withAuthenticator(App);DataStore - sync error typeerror Symbol.asyncIterator is not defined
npm install @azure/core-asynciterator-polyfill
import '@azure/core-asynciterator-polyfill'yarn add @gorhom/bottom-sheet@^4
expo install react-native-reanimated react-native-gesture-handler
En babel.config.js agregar:
plugins: ["react-native-reanimated/plugin"],
npx expo install react-native-maps
expo install expo-location
npm i react-native-maps-directions
By Wilfredo Meneses