React-native onPress() event doesn't work in Android
I am experiencing a very weird behaviour in my android emulator when using react-navigation v5 in my react native application, which makes me think is a bug. I found out that there is an open issue on...
View ArticleWebsockets with Android SDK 28 not working (React Native)
I have a RN app with websockets. The following code works in iOS, but not in Android.useEffect(() => { const ws = new WebSocket('ws://localhost:3001') return () => ws.close() }, []) When I do a...
View ArticleUnable to resolve module `../images/icon.png` from `src\pages\home\index.js`:
I'm going through a problem that apparently seems to be simple, but I'm not managing to solve it.I'm starting an application using React Native, and I'm wanting to import an image that is in a folder,...
View ArticleReact-Native Element changing size while scrolling
I'm trying to make a react-native scrollview with 3 (or more) elements where the element in the middle of the screen is always 1.75 times the normal element size, and while scrolling the size changes...
View ArticleReact Native - How to load local image using the uri in Image Component?
I know we can load the local image with:<Image source={require('folder/image.png')}/> But i need to load the image like this:<Image source={{uri: 'folder/image.png'}}/> It works for network...
View ArticleReact Native Navigation React Native CLI Autolinking error
Issue DescriptionI installed the library via npx react-native link react-native-navigation (and modifying the minSdkVersion in andoid/build.gradle).When I run npx react-native run-android, the app is...
View ArticleWhat should I do to make webview resizes images in the content to fit the...
webview doesn't resize images in the content to fit the mobile screen.I use from "react-native-webview" and I'm trying to make the web content fit into the mobile screen but images don't fit at all...
View ArticleAndroid Studio Emulator don't run the app
i'm new at programming and studying react-native. 1 month ago I installed everything and started to code normally testing the app in the emulator. I don't know if I did something wrong but, when I...
View ArticleError : WebView has been removed from react native
I built new React Native project yesterday using react-native-cli. But when running the project with my android phone, I got this error in red screen.Invariant Violation: WebView has been removed from...
View ArticleHow can i regenerate ios and android folder?
How can I regenerate ios and android folder in React Native project?react-native-cli: 2.0.1 react-native: 0.61.2❯ react-native eject error Unrecognized command "eject". info Run "react-native --help"...
View ArticleHow to fix OKHttp module conflict in Android ReactNative project with...
I'm working on ReactNative project that it have several native dependencies. When we were developing software, we noticed a crash in application. So we released project and launch on real device...
View ArticleAndroid react native environment, call Animated.timing.start when screen is...
This is my code: this.disappearA = Animated.timing( this.state.leftA, { toValue: -WIDTH - OFFSET, duration: DURATION, easing: Easing.linear, } ); this.dispearA.start(() => { this.dataIsA = false;...
View ArticleReact native control for user mode switching
My application built in react-native needs to support different user modes. When I am on the screen I don't know the user-mode I am in. My customer are complaining about it. Is there any control in...
View ArticleTask :react-native-firebase:compileReleaseJavaWithJavac FAILED
I clone my own repo. project in on react native, I installed node modules and set Jdk8 as per requirements of my project. Then i run my project using react-native run-android. show me error Task...
View ArticleReceiving TypeError: undefined is not a function (near'...posts.map...')...
I am trying to run my Expo App on the iPhone/Android devices, but I receive"undefined is not a function (near'...posts.map...')"But the application runs on iOS emulator...It does show the error on the...
View ArticleReact Native app closes after saving a contact
I'm using react-native-contacts inside my react native app to save a contact. Before saving I request WRITE permission from android. It works, I open the contact form through my app and save it using...
View ArticleHow to return to app after saving contacts - React Native -...
I'm using react-native-contacts inside my react native app to save a contact. Before saving I request WRITE permission from android. It works, I open the contact form through my app and save it using...
View ArticleHow to detect 3rd party keyboard in react native (iOS and Android)
In native iOS we can specify shouldAllowExtensionPointIdentifier to disable 3rd party keyboard.-(BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString...
View ArticleReact Native local assets images not showing some time on release mode
my local assets images are working fine on Debug mode. but when i build apk in release mode with command react-native run-android --variant=release at first all local images showing correct but after...
View ArticleHow to call two function on onpress event in react native?
In below code, I want to call both methods on onpress event but I'm facing some issues, please give some idea how to call two methods on onpress event.One method for start chatting and second for...
View Article