#android #json #react-native #magento
Вопрос:
Я уже подключил интеграцию magento с react native, но изображения не отображаются, я настроил свой magento на локальном, кстати, я следую этому https://www.youtube.com/watch?v=W82p3WfwxrA… вот как это выглядит.
Вот что он говорит, когда я запускаю react-native run-android.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:13160) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Jetifier found 1262 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
> Task :app:stripDebugDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.
> Task :app:installDebug
01:11:19 V/ddms: execute: running am get-config
01:11:20 V/ddms: execute 'am get-config' on 'emulator-5554' : EOF hit. Read: -1
01:11:20 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'Pixel_3a_XL_API_29(AVD) - 10' for app:debug
01:11:20 D/app-debug.apk: Uploading app-debug.apk onto device 'emulator-5554'
01:11:20 D/Device: Uploading file onto device 'emulator-5554'
01:11:20 D/ddms: Reading file permision of C:UsersAtifDocumentsappsmagento-react-nativeandroidappbuildoutputsapkdebugapp-debug.apk as: rwx------
01:11:20 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
01:11:21 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1
01:11:21 V/ddms: execute: returning
01:11:21 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
01:11:21 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1
01:11:21 V/ddms: execute: returning
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 3s
208 actionable tasks: 9 executed, 199 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.magento_mobile_app/.MainActivity }
This is my config file:
export const magentoOptions = {
url: 'http://10.0.2.2/magento241/', // make sure you have trail slash in the end
home_cms_block_id: '35',
store: 'default', // store code // Stores > All Stores > Store View > Code
authentication: {
integration: {
access_token: '0fy0b0sa497uadi3q6177tmin4rc0z4b',
},
},
reviewEnabled: false, // set true ONLY if you install https://github.com/troublediehard/mma-customapi on the magento backend
};
And last is this is the cms block section:
Thank you for your help in Advance if i missed any detail pls tell me and ill show it! I appreciate your help!