Open GuilhermeViveiros opened 1 year ago
Add Package to Existing App
Operating System: MacOS Building for ios Steps for installation the package to an existing app: yarn add react-native-pytorch-core I also added this into the plugins for app.config.js: react-native-pytorch-core
yarn add react-native-pytorch-core
react-native-pytorch-core
Package.json configuration is as follows:
{ "scripts": { "start": "cp envs/prod.ts src/env.ts ; ENVIRONMENT=production expo start --dev-client", "android": "cp envs/prod.ts src/env.ts ; ENVIRONMENT=production expo run:android", "tunnel": "cp envs/prod.ts src/env.ts ; ENVIRONMENT=production expo start --tunnel --dev-client", "ios": "cp envs/prod.ts src/env.ts ; ENVIRONMENT=production expo run:ios", "start:dev": "cp envs/stag.ts src/env.ts ; ENVIRONMENT=staging expo start --dev-client", "android:dev": "cp envs/stag.ts src/env.ts ; ENVIRONMENT=staging expo run:android", "tunnel:dev": "cp envs/stag.ts src/env.ts ; ENVIRONMENT=staging expo start --tunnel --dev-client", "ios:dev": "cp envs/stag.ts src/env.ts ; ENVIRONMENT=staging expo run:ios", "lint": "cp envs/stag.ts src/env.ts ; eslint \"**/*.{js,ts,tsx}\"", "lint-fix": "eslint --max-warnings 0 --fix \"**/*.{js,ts,tsx}\"", "test:unit": "TZ=Etc/Utc jest --config jest.config.js", "test:unit:ci": "TZ=Etc/Utc jest --config jest.config.js --ci --collectCoverage --reporters=default --reporters=jest-junit", "typecheck": "tsc --noEmit", "clean": "rm -rf dist node_modules yarn.lock ios/build/ ios/Pods/ ios/Podfile.lock && yarn && npx pod-install" }, "resolutions": { "react-native-svg": "13.7.0", "@expo/config-plugins": "^5.0.2" }, "dependencies": { "@ethersproject/shims": "^5.7.0", "@expo/config-plugins": "^5.0.2", "@expo/metro-config": "^0.1.67", "@expo/webpack-config": "^0.17.2", "@ptomasroos/react-native-multi-slider": "^2.2.2", "@react-native-async-storage/async-storage": "~1.18.1", "@react-native-community/blur": "^4.3.2", "@react-native-community/datetimepicker": "^7.1.0", "@react-native-firebase/analytics": "^17.3.0", "@react-native-firebase/app": "^17.3.0", "@react-native-firebase/dynamic-links": "^17.4.3", "@react-native-google-signin/google-signin": "^9.0.2", "@react-navigation/bottom-tabs": "^5.11.11", "@react-navigation/native": "^5.9.4", "@react-navigation/stack": "^5.14.5", "@types/lodash.clamp": "^4.0.7", "@types/react-native-snap-carousel": "^3.8.5", "@types/uuid": "^9.0.2", "@walletconnect/react-native-dapp": "^1.8.0", "@weareredlight/denormalize_json_api": "^0.2.2", "base-64": "^1.0.0", "country-list": "^2.2.0", "dayjs": "^1.11.7", "eslint-plugin-tss-unused-classes": "^0.0.4", "ethers": "^5.7.1", "expo": "~47.0.12", "expo-apple-authentication": "^5.0.1", "expo-application": "~5.0.1", "expo-auth-session": "~3.8.0", "expo-av": "~13.0.1", "expo-build-properties": "~0.4.1", "expo-clipboard": "~4.1.2", "expo-constants": "~14.0.2", "expo-crypto-polyfills": "^1.1.0", "expo-dev-client": "~2.0.1", "expo-device": "~5.0.0", "expo-file-system": "~15.1.1", "expo-font": "~11.0.1", "expo-image-manipulator": "~11.0.0", "expo-image-picker": "~14.0.2", "expo-keep-awake": "~11.0.1", "expo-linear-gradient": "~12.0.1", "expo-linking": "~3.3.0", "expo-localization": "~14.0.0", "expo-notifications": "~0.17.0", "expo-random": "~13.0.0", "expo-screen-orientation": "~5.1.1", "expo-sensors": "~12.0.1", "expo-sharing": "~11.0.1", "expo-splash-screen": "~0.17.5", "expo-status-bar": "~1.4.2", "expo-updates": "~0.15.6", "expo-web-browser": "~12.0.0", "humps": "^2.0.1", "i18next": "^20.3.1", "jest": "^26.6.3", "jest-expo": "^47.0.0", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "metro-core": "^0.76.7", "mobx": "^6.3.2", "mobx-persist": "^0.4.1", "mobx-react-lite": "^3.2.0", "moment": "^2.29.4", "react": "18.1.0", "react-dom": "18.1.0", "react-i18next": "^11.10.0", "react-native": "0.70.8", "react-native-card-flip": "^1.0.7", "react-native-dotenv": "^2.5.5", "react-native-drawer": "^2.5.1", "react-native-error-boundary": "^1.1.9", "react-native-fbsdk-next": "^11.1.0", "react-native-gesture-handler": "~2.9.0", "react-native-get-random-values": "~1.8.0", "react-native-iap": "12.0.3", "react-native-iphone-x-helper": "^1.3.1", "react-native-modal": "^13.0.1", "react-native-modal-datetime-picker": "^17.0.0", "react-native-pager-view": "6.0.1", "react-native-popup-menu": "^0.15.12", "react-native-progress": "^5.0.0", "react-native-reanimated": "^2.10.0", "react-native-recaptcha-that-works": "^1.2.0", "react-native-round-flags": "^1.0.4", "react-native-safe-area-context": "4.4.1", "react-native-screens": "~3.20.0", "react-native-snap-carousel": "4.0.0-beta.6", "react-native-svg": "13.7.0", "react-native-svg-transformer": "^0.14.3", "react-native-tab-view": "^3.1.1", "react-native-text-ticker": "^1.14.0", "react-native-timezone": "^2.3.0", "react-native-toast-notifications": "^3.3.0", "react-native-use-persist-storage": "^1.0.2", "react-native-version-check-expo": "^3.4.7", "react-native-view-shot": "3.4.0", "react-native-vision-camera": "^2.15.4", "react-native-web": "~0.18.7", "react-native-webview": "12.0.2", "rn-tourguide": "^3.3.0", "sentry-expo": "^6.0.0", "socket.io-client": "^4.4.1", "use-count-up": "^3.0.1" }, "devDependencies": { "@babel/core": "^7.19.3", "@babel/eslint-parser": "^7.14.3", "@testing-library/jest-native": "^4.0.4", "@testing-library/react-hooks": "^7.0.2", "@testing-library/react-native": "^9.0.0", "@types/jest": "^27.4.1", "@types/lodash.debounce": "^4.0.7", "@types/react": "~18.0.24", "@types/react-dom": "~18.0.8", "@types/react-native": "~0.70.6", "@types/react-native-dotenv": "^0.2.0", "@types/react-test-renderer": "^17.0.1", "@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/parser": "^5.14.0", "babel-plugin-module-resolver": "^4.1.0", "babel-plugin-transform-remove-console": "^6.9.4", "eslint": "^7.26.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-i18next": "^5.1.2", "eslint-plugin-import": "^2.23.4", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-react-native": "^3.11.0", "jest-junit": "^13.0.0", "typescript": "^4.6.3" }, "private": true, "name": "mobile", "version": "1.0.0" }
I am also facing this issue.
Tutorial Select
Add Package to Existing App
Feedback
Operating System: MacOS Building for ios Steps for installation the package to an existing app:
yarn add react-native-pytorch-core
I also added this into the plugins for app.config.js:react-native-pytorch-core
Package.json configuration is as follows: