Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all 28482 articles
Browse latest View live

React Native Android Build Failure

$
0
0

I'm currently having this error when I build my react native project using android studio. How do I fix this and remove the duplicates.

 Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector found in modules imagepipeline-base-2.2.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.2.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)    Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfo found in modules imagepipeline-base-2.2.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.2.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)    Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfoEntry found in modules imagepipeline-base-2.2.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.2.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)

How can I use AEM (Adobe Experience Manager) with react native [closed]

$
0
0

I want to use AEM (Adobe Experience Manager) with react native. But I could not find any documentation or guidelines.

Could anyone let me know if it's possible to use AEM with react native and how to use it?Thank you.

How do you implement PermissionAwareActivity for react native?

$
0
0

There is very little documentation on react native's PermissionAwareActivity and I need to implement its methods for Android API 23+ to allow the user to accept / decline bluetooth permissions.

import android.support.v4.app.ActivityCompat; import com.facebook.react.modules.core.PermissionAwareActivity;import com.facebook.react.modules.core.PermissionListener;public class MainActivity extends ExponentActivity implements PermissionAwareActivity {  private PermissionListener mPermissionListener;  @Override  public int checkPermission(String permission, int pid, int uid) {    return PackageManager.PERMISSION_GRANTED;  }  @Override  public  int checkSelfPermission(String permission) {    return PackageManager.PERMISSION_GRANTED;  }  @Override  public void requestPermissions(String[] permissions, int requestCode, PermissionListener listener) {    mPermissionListener = listener;    ActivityCompat.requestPermissions(this, permissions, requestCode);  }  @Override  public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {    // callback to native module    mPermissionListener.onRequestPermissionsResult(requestCode, permissions, grantResults);  }  ...

I'm not really sure how I'm suppose to implement these methods. Any help is appreciated. Even if someone can point me to some documentation or resource which I cannot find.

Required by:project :react-native-maps Cannot find a version of 'com.android.support:support-compat' that satisfies the version constraints

$
0
0

I am creating an app using react-native and react-native-map. Below are the versions of packages

"react": "16.8.3","react-native": "0.59.0","react-native-maps": "^0.23.0",

I am just following the documentation and I am getting the error specified in subject line,I tried to verify but no luck

Could not resolve com.android.support:support-compat:26.1.0.Required by:    project :react-native-maps   Cannot find a version of 'com.android.support:support-compat' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-compat:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-media-compat:26.1.0' --> 'com.android.support:support-compat:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-compat:28.0.0'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-compat' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-compat' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-compat' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0Could not resolve com.android.support:support-annotations:26.1.0.Required by:    project :react-native-maps    Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:collections:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:cursoradapter:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:versionedparcelable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:documentfile:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:localbroadcastmanager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:print:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'android.arch.lifecycle:viewmodel:1.1.1' --> 'com.android.support:support-annotations:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-media-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:interpolator:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-annotations:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-annotations' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-annotations' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-annotations' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0Could not resolve android.arch.lifecycle:runtime:1.0.0.Required by:    project :react-native-maps    Cannot find a version of 'android.arch.lifecycle:runtime' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0Could not resolve android.arch.lifecycle:common:1.0.0.Required by:    project :react-native-maps    Cannot find a version of 'android.arch.lifecycle:common' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.lifecycle:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0Could not resolve android.arch.core:common:1.0.0.Required by:    project :react-native-maps    Cannot find a version of 'android.arch.core:common' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:common:1.1.1'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.core:common:1.1.1'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.core:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0Could not resolve com.android.support:support-core-utils:26.1.0.Required by:    project :react-native-maps    Cannot find a version of 'com.android.support:support-core-utils' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-core-utils:26.1.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-utils' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-utils' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-utils' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0Could not resolve com.android.support:support-core-ui:26.1.0.Required by:    project :react-native-maps    Cannot find a version of 'com.android.support:support-core-ui' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-core-ui:26.1.0'      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-ui' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-ui' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0Could not resolve com.android.support:support-fragment:26.1.0.Required by:    project :react-native-maps    Cannot find a version of 'com.android.support:support-fragment' that satisfies the version constraints:      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0'

How RN app communicate with metro bundler?

$
0
0

I am building my first react-native application and I am confused about one thing which I searched a lot on google but nothing was found nearby it.

When we start out development we deploy android app in emulator or device and a metro bundler running is required to pull js bundle. I am not aware about how App and metro bundler communicates and who makes that communication possible and how it is different when we make prod build?

How to properly highlight text in React Native?

$
0
0

I would like to highlight a multiline text in a React Native app by changing the text's background color. The problem is that the background color changes in the whole text area, not just under the words.

class Example extends Component {  render() {    const text = '...';    return (<View style={styles.textContainer}><Text style={styles.textStyle}>          {text}</Text></View>    );  }}const styles = StyleSheet.create({  textContainer: {    flexDirection: 'row',    flexWrap: 'wrap',    width: 200,  },  textStyle: {    backgroundColor: 'red',  },});

The code above results in something that looks like this: current output

But I would like it to look like this: expected output

I can get that result by splitting the text and adding the background color to the individual words:

class Example extends Component {  render() {    const text = '...';    const brokenText = text.split('').map(word => (<Text style={styles.textStyle}>{word} </Text>    ));    return (<View style={styles.textContainer}>        {brokenText}</View>    );  }}

But splitting the text into individual words doesn't seem like the best solution, and has a huge performance cost. Is there any cleaner way to do it?

Not able to build android apk in react native expo project

$
0
0

I am trying to build an apk from an existing expo project.

For that I ejected the expo project and also generated the keystore files and kept it successfully in the project.

Now I ran the command gradlew assembleRelease in the android folder but the terminal gives the following error:

A problem occurred configuring root project 'rnapp'.

Could not resolve all files for configuration ':classpath'.Could not download builder.jar (com.android.tools.build:builder:3.1.4)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.4/builder-3.1.4.jar'.> Connection resetCould not download sdk-common.jar (com.android.tools:sdk-common:26.1.4)> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.1.4/sdk-common-26.1.4.jar'.> Connection reset

This is the build.gradle file:

// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    ext {        buildToolsVersion = "27.0.3"        minSdkVersion = 16        compileSdkVersion = 27        targetSdkVersion = 26        supportLibVersion = "27.1.1"    }     repositories {        google()        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:3.1.4'    }}allprojects {    repositories {        mavenLocal()        jcenter()        maven {            url "$rootDir/../node_modules/react-native/android"        }    }}task wrapper(type: Wrapper) {    gradleVersion = '4.4'    distributionUrl = distributionUrl.replace("bin", "all")}

I am expecting a build of the project as Apk file.

how to use print attribute react-native-share

$
0
0

I am using the react-native-share extension for the share and print Pdf document. I am trying to add The 'Print' attribute but it is not working or I couldn't get it rightI follow this document https://react-native-community.github.io/react-native-share/docs/share-open#activitytype

and i used the example here https://react-native-community.github.io/react-native-share/docs/share-open#activityitemsources-ios-onlyAccording to this document, I created an object like

const url = this.props.navigation.state.params.document.url           {            item:{            print : url            }          },

enter image description here


Deep Link not automatically opening in Android

$
0
0

I've set up a Deep Link within an app. When a notification comes through with a deep link, the User is prompted with a popup asking which app they would like to open the link with.

Both of these apps are identical, I only have one instance of it installed on my device.

image of android popup asking for which app to open link with

Here's a snippet of my AndroidManifest

<activity            android:name=".MainActivity"            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"            android:label="@string/app_name"            android:launchMode="singleTask"            android:screenOrientation="portrait"            android:windowSoftInputMode="adjustResize"            tools:ignore="LockedOrientationActivity"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter><intent-filter android:autoVerify="true"><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.BROWSABLE"/><data android:scheme="myscheme"                    android:host="foo" /></intent-filter></activity>

The deep link I am using is myscheme://foo

Why Splash screen keeps appearing in the background after Login screen loaded?

$
0
0

I'm setting the Splash screen icon and color through app.json:

When i tried to test the app on Android emulator it work properly, but after executing the apk the issues seems to appear again

Here is the splash screen code snippet from app.json file:

"platforms": ["ios","android"],"version": "1.0.0","orientation": "portrait","icon": "./assets/icon.png","splash": {"image": "./assets/splash.png","resizeMode": "contain","backgroundColor": "#ffd525"}

I expected the Login screen to appear as:

enter image description here

But it keeps appearing as:

enter image description here

Dependencies used:

"dependencies": {"expo": "^32.0.0","native-base": "^2.12.1","react": "16.5.0","react-native": "https://github.com/expo/react-native/archive/sdk-     32.0.0.tar.gz","react-native-paper": "^2.15.2","react-navigation": "3.1.2"}

How to get accessToken of React Native GoogleSignIn?

$
0
0

I am not able to get accessToken, i need it in my backend api.

When i try this,

googleLogin = () => {  GoogleSignin.signIn()    .then((data) => {      console.log("TEST "+JSON.stringify(data));      var postData = {        access_token: data.accessToken,        code: data.idToken,      };      let axiosConfig = {        headers: {'Content-Type': 'application/json',"Accept": "application/json",        }      };     ....      //Backend api axios call     ....    })    .then((user) => {      console.log("TEST G LOGIN 1 "+JSON.stringify(user))    })    .catch((error) => {      console.log("....."+JSON.stringify(error))    });}

got this response, it doesn't inculde

accessToken

{"scopes": ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],"serverAuthCode": "4/jwE5LLLLLLa7-f33333jmMD2V978oyp44444eb9yGe_qhHnkXXXXXXXLFXKZlQdDzlH-iIJx_gzqlLLLLLL3Q0PP0","idToken": "...v65a4MCC-ZUQmys_wf_DoCOBJEMuI........","user": {"photo": "https://lh3.googleusercontent.com/-tLLLLLyeS0KE/AAAMMMMAAAI/AAAAAAAAAAA/ACHi3reMhihoeTe_6NjL666666EUVU82Q/s96-c/photo.jpg","email": "test@gmail.com","familyName": "tech","givenName": "test","name": "testtech","id": "11688888817288868"    }}

as per documentation

getTokens() Resolves with an object containing { idToken: string, accessToken: string, } or rejects with an error. Note that using accessToken is discouraged.

So, i tried this in

GoogleSignin.Sign({.... var gettoken =  GoogleSignin.currentUserAsync(data.user).then((token) => {      console.log('USER token', token);    }).done();... })

it got error and also tried const token = GoogSignIn.getTokens(), it return null.

package.json info

{..."react": "16.8.3","react-native": "0.59.9","react-native-firebase": "5.3.1","react-native-google-signin": "^2.0.0"...}

Please suggest what would be procedure to get accessToken.

Send location via Web Socket when the App gone to background in react-native (Android)

$
0
0

I am using Socket.io JS client in react-native as a Context variable. So i've access to WebSocket in whole of my application. When the App goes to background the web socket will disconnect automatically ( probably by OS) So I'm using react-native-background-fetch to wake up it every 15 mins, But it seems my webSocket not reconnect in background. Where is my mistake?

    BackgroundFetch.configure(      {        minimumFetchInterval: 15, // <-- minutes (15 is minimum allowed)        // Android options        forceAlarmManager: false, // <-- Set true to bypass JobScheduler.        stopOnTerminate: false,        startOnBoot: true,        requiredNetworkType: BackgroundFetch.NETWORK_TYPE_NONE, // Default        requiresCharging: false, // Default        requiresDeviceIdle: false, // Default        requiresBatteryNotLow: false, // Default        requiresStorageNotLow: false, // Default      },      async (taskId) => {        console.log('JS Received background-fetch event: ', taskId);        webSocket.socket.reconnect();        webSocket.on('connect', () => {          console.log('reconnected');          Geolocation.getCurrentPosition(            (position) => {              let {latitude, longitude} = position;              webSocket.emit('setLocation', {location: [latitude, longitude]});            },            (error) => console.log(error),            {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000},          );        });        BackgroundFetch.finish(taskId);      },      (error) => {        console.log('[JS] RNBackgroundFetch failed to start');      },    );

How to implement Wallet feature in react native app

$
0
0

I'm trying to integrate wallet in my react-native app using paypal/Braintree in which i can able to load amount to my wallet.

  According to Paypal SDK In native they are deprecated and braintree is handling that for Paypal. But i cant able to get any information anywhere for wallet integration. 

Any suggestions will be a great help

react native mapbox does not load map in release APK

$
0
0

Map is loading fine in debug build in simulator, but it's not loading in release apk. I have set the valid accesstoken like following,

Mapbox.setAccessToken(appConfig.mapboxAccessToken);

The token is fine, cause it's working ok in app which was build using legacy react native mapbox library by nitaliano. But this app, is build with react-native-mapbox-gl/maps

Android Emulator connecting to node server in WSL2

$
0
0

I'm having a REAL bad time working with Android Studios, WSL2 and React Native.

Every day I get something to work, other stuff breaks. Yesterday, everything was working fine, now I can't connect to my server from my app.

I don't know where to ask this exactly but I'm feeling desperate. I've been trying to solve this for about EIGHT DAYS. I can't. I need help.

I'm not a fluent developer so please try to be kind and explain stuff as thoroughly as you can.

In order to clarify as much as possible, I did this step-by-step list.

Much of it is based on this tutorial, the only thing that made WSL2 + Android Studios work together.

What am I doing, in order:

  • Starting Hyper in WSL (Ubuntu 20)
  • Navigating to my React Native project folder
  • Opening Windows Terminal as admin
  • Run in Terminal:
adb kill-serveradb -a nodaemon server start
  • Then, in Hyper:
unset ADB_SERVER_SOCKETsocat -d -d TCP-LISTEN:5037,reuseaddr,fork TCP:$(cat /etc/resolv.conf | tail -n1 | cut -d " " -f 2):5037
  • I let both Terminal and Hyper running and don't close their windows/tabs.
  • In another Terminal window, I run:
iex "netsh interface portproxy delete v4tov4 listenport=8081 listenaddress=127.0.0.1" | out-null;$WSL_CLIENT = bash.exe -c "ip addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'";$WSL_CLIENT -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';$WSL_CLIENT = $matches[0];iex "netsh interface portproxy add v4tov4 listenport=8081 listenaddress=127.0.0.1 connectport=8081 connectaddress=$WSL_CLIENT"
  • Still in Terminal, I get my WSL ip using ipconfig. Let's say it's 172.22.32.1.
  • I open VS Code and change my Axios API connection to this IP. Eg:
import axios from 'axios';const api = axios.create({  baseURL: 'http://172.22.32.1:3333',});export default api;
  • I open a Android Studios AVD, named emulator-5554.
  • I run yarn start on Hyper. It shows "Welcome to React Native" etc.
  • In another tab, I run yarn android --variant=debug --deviceId emulator-5554 and wait it's completion.
  • At this point the app is running on my device. If I make changes on VS Code, it changes. Everything apparently running smoothly.
  • I start docker desktop (windows with WSL2 integration) and do docker ps to check if anything is started. Nothing is.
  • I run docker start mongo redis gostack-postgres (there's a reason to be using all this but I believe it's unrelated).
  • Then, docker ps:
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS  NAMES1a19b8e8914a        mongo               "docker-entrypoint.s…"   4 days ago          Up 5 seconds        0.0.0.0:27017->27017/tcp  mongo172505459df6        postgres            "docker-entrypoint.s…"   4 days ago          Up 4 seconds        0.0.0.0:5432->5432/tcp  gostack-postgresacac9fa31419        redis:alpine        "docker-entrypoint.s…"   5 days ago          Up 5 seconds        0.0.0.0:6379->6379/tcp  redis
  • I navigate to the server folder and start it running yarn dev:server.
  • I test it using my front-end website on chrome, running on localhost:3000. The server works fine, as I can login and change information.
  • Again, I test the server using localhost:3333 in browser and receiving a connected message. Everything ok, so I kill the front-end website.
  • I try to login through my app, as I did in the website. It waits a few seconds... and gives me the [Error: Network Error] log in React Native Metro.
  • Ok, something is wrong with the connection. Let's try localhost instead of the IP. I change it in my API settings.
const api = axios.create({  baseURL: 'http://localhost:3333',});
  • In order to make sure everything is ok, I re-run yarn android --variant=debug --deviceId emulator-5554
  • This time, as soon as I press the login button, the app returns [Error: Network Error] (the other time it took a few to return me).
  • I believe this is not the IP I should be using. I try, then 0.0.0.0 and re-run yarn android.... After finished, I reload Metro with r.
  • [Error: Network Error] and less 2 years in my life due to stress.
  • Ok. It's time to beg for help online.

I absolutely don't know what I might be doing wrong. I just need this to work so I can keep working. Please please please help me. I'm actually begging.


ReactNative PanResponder limit X position

$
0
0

I'm building a Music Player and I'm focusing on the progress bar.I was able to react to swipe gestures, but I cant limit how far that gesture goes.

This is what I've done so far. I've reduced everything to the minumal:

constructor(props) {    super(props);    this.state = {      pan: new Animated.ValueXY()    };}componentWillMount() {    this._panResponder = PanResponder.create({        onMoveShouldSetResponderCapture: () => true,        onMoveShouldSetPanResponderCapture: () => true,        onPanResponderGrant: (e, gestureState) => {            // Set the initial value to the current state            let x = (this.state.pan.x._value < 0) ? 0 : this.state.pan.x._value;            this.state.pan.setOffset({ x, y: 0 });            this.state.pan.setValue({ x: 0, y: 0 });        },        onPanResponderMove: Animated.event([            null, { dx: this.state.pan.x, dy: 0 },        ]),        onPanResponderRelease: (e, { vx, vy }) => {            this.state.pan.flattenOffset();        }    });}render() {    let { pan } = this.state;    // Calculate the x and y transform from the pan value    let [translateX, translateY] = [pan.x, pan.y];    // Calculate the transform property and set it as a value for our style which we add below to the Animated.View component    let imageStyle = { transform: [{ translateX }, { translateY }] };    return (<View style={styles.container}><Animated.View style={{imageStyle}} {...this._panResponder.panHandlers} /></View>    );}

Here there is an image showing what the problem is.

Initial position:

Initial position

Wrong Position, limit exceeded:

Wrong position

So the idea is to stop keeping moving once the limit (left as well as right) is reached. I tried checking if _value < 0, but it didn't work since It seems to be an offset, not a position.

Well any help will be appreciated.

How solve (Could not initialize class org.codehaus.groovy.reflection.ReflectionCache) issue in react native

$
0
0

$ npx react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 864 file(s) to forward-jetify. Using 4 workers...info Starting JS server...info Launching emulator...error Failed to launch the emulator. Reason: Could not start an emulator within 30 seconds.warn Please launch an emulator manually or connect a device. Otherwise, the app may fail to launch.info Installing the app...

FAILURE: Build failed with an exception.

  • What went wrong:Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

  • Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 23s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

  • Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 23s

at checkExecSyncError (child_process.js:629:11)at execFileSync (child_process.js:647:13)at runOnAllDevices (E:\work\react-native\AwesomeProject1\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)

Using SCRCPY and React-Native at the same time on a linux machine

$
0
0

I am trying to use scrcpy for mirroring the mobile screen on my Linux machine, to develop a react-native app. But adb does not allow running scrcpy and react-native instance at the same time. It terminates one instance and starts the other one. The documentation for scrcpy states to add an env variable ADB=/path/to/adb scrcpy.I'm not very familiar with Linux environments. Could someone help me with this please? I tried looking this up on the internet, but most of them explain how to do this on a windows environment.

Cannot able to emit Array of WritableMap from android to react-native

$
0
0

I have object like the below

 data class CallInfo (@SerializedName("callStatus") val callStatus : String,@SerializedName("callType") val callType : String,@SerializedName("callDirection")val callDirection: String,@SerializedName("callMode") val callMode : String,@SerializedName("users") val users : List<Users>) 

And i'm trying to send this object to react-native by Emit method

@ReactModule(name = RoomModule.NAME)public class RoomModule extends ReactContextBaseJavaModule  {public static final String NAME = "RoomModule";public RoomModule(@NonNull ReactApplicationContext reactContext) {    super(reactContext);}   public static void startCall(){    Random random = new Random();    String randomString = String.valueOf(random.nextInt()).replace("-", "");    ArrayList<Users> usersArrayList=new ArrayList<>();    usersArrayList.add(new Users("Thiyaga1","https://thiyagadude.com/api/v1/media/xSoIkb0XAh1590760167030"));    usersArrayList.add(new Users("Thiyaga2","https://thiyagadude.com/api/v1/media/xSoIkb0XAh1590760167030"));    CallInfo callInfo=new CallInfo("calling","audio","outgoing","onetoone",usersArrayList);    @Nullable Bundle launchOptions = ConstructBundle.INSTANCE.getCallUsersJsonObject(callInfo);    WritableMap initialProps = Arguments.makeNativeMap(launchOptions);    WritableNativeMap appParams = new WritableNativeMap();    appParams.putMap("initialProps", initialProps);    ReactInstanceManagerHolder.emitEvent("com.thiyaga.react:features/connection_service#startCall",appParams);}}

ConstructBundle.kt

 Object ConstructBundle{   private fun getCallUsersJsonObject(userInfo:CallInfo):Bundle? {    val bundle = Bundle()    bundle.putString("id", userInfo.id)    bundle.putString("name", userInfo.name)    bundle.putParcelableArrayList("users", getUsersObject(userInfo.users) )    return bundle;}private fun getUsersObject(users: List<Users>): ArrayList<Bundle> {    val array = ArrayList<Bundle>()    for (user in users) {        val jo = Bundle()        jo.putString("name", user.name)        jo.putString("avatar", user.avatar)       array.add(jo)    }    return array}}

i should be getting the map as the below..

 {"initialProps": { "callStatus": "calling","callDirection": "outgoing","callType": "audio", "callMode": "onetoone", "users": [    {"name": "Thiyaga1","avatar": "https://thiyagadude.com/api/v1/media/xSoIkb0XAh1590760167030"    },    {"name": "Thiyaga2","avatar": "https://thiyagadude.com/api/v1/media/xSoIkb0XAh1590760167030    }  ]}}

but instead i'm getting like the below

 {"initialProps": { "callStatus": "calling","callDirection": "outgoing","callType": "audio", "callMode": "onetoone", "users": [[Object], [Object]]}}

the issue here is that if i send the data without assigning to "initialProps" key value i could able to send the whole data...

{ "callStatus": "calling","callDirection": "outgoing","callType": "audio", "callMode": "onetoone", "users": [    {"name": "Thiyaga1","avatar": "https://thiyagadude.com/api/v1/media/xSoIkb0XAh1590760167030"    },    {"name": "Thiyaga2","avatar": "https://thiyagadude.com/api/v1/media/xSoIkb0XAh1590760167030    }  ]}

thank in advance for everyone who is answering.. hope community helps me from my nightmare..

React Native Change splash screen

$
0
0

I am using expo to use my react native app then creating new app react-native init app_name then creating apk with Android Studio.

I can change the app icon and splash screen in expo app.json like

{"name": "MyApp","displayName": "MyApp", "icon": "./images/icon.png","splash": {"image": "./aso/splash.png","resizeMode": "contain","backgroundColor": "#ffffff"  }}

It works with expoBut when I add this icon and splash to new react native app nothing happens.How can I change this two images

Viewing all 28482 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>