TypeError: Cannot read property 'viewManagersNames' of undefined -...
I'm trying to integrate Jest unit testing with Enzyme on my React-Native Typescript package, but after reading docs and tutorials, I can't seem to make it work.The problem only happens when using...
View ArticleHow can type a button including an icon with React Native?
I'm trying to type a button component where all of them have to get a title, but some don't get an icon.This icon comes from "@expo/vector-icons". What should I do when I put the component display an...
View ArticleInvariant Violation: no callback found with cbID for module
I have created yarn package with common components, services, utils, etc. for my project. Then I have created index.ts file in src folder, where I've exported all components. Then I've built the...
View Articleperform asynchronous operations inside as a constant variable
I have one functional componentimport { DEFAULT_LANGUAGE} from './translations';import React, { useState } from 'react';export const Welcome= () => { const [appLanguage, setAppLanguage] =...
View ArticleCant understand Stack Trace in React Native in WebStorm
I recently switched from Expo to React Native due to using Firebase. Now were trying to use axios for rest calls, and the error i get is not understandable at all. Is there a way to make React output...
View ArticlePass route name as variable in react naive navigation
I have a screen that used in two navigators and wanna make navigation.navigate to previous screen with passig some data. I've tried something like this:const {routeNames, index} =...
View ArticleHow can I implement webview background audio play on Vimeo in react native?
Now I can play videos from vimeo in react-native.import WebView from 'react-native-autoheight-webview';<WebViewallowsFullscreenVideoscrollEnabled={false}automaticallyAdjustContentInsetssource={{...
View ArticleHow to use MyDrawer function?
[My Drawer function wasnt working, so i tried to add onPress={() => navigation.openDrawer() function to see if it works, but it seems that the function "openDrwaer" doesnt exist, even when it is in...
View Articlereact-native Gradlew doesn't create app.aab
System Inforeact-native: 0.59.8android-studio: 3.3.1BackgroundI'm making simple react-native app.I tried to upload my application on Google Play Store, but failed.I followed this documentation. As it...
View ArticleSwitch view of content depending on click React-Native
I am new in react native.My question is pretty simple: On click on user the content of modal will change, if user is user.type === type.Renter I need to show first View, else If user.type ===...
View ArticleReact createRef not assignable to type MutableRefObject in React Native...
I am using react-native-actions-sheet v0.5.1 which recently added Typescript support:export default function MyFunc(){ const actionSheetRef = createRef<ActionSheet>() useEffect(() => {...
View ArticleReact-Native: Should I use StyleProp or can i write it without StyleProp?
Normally, I write like this:interface _props{ style?: TextStyle,}But should I add StyleProp ?interface _props{ style?: StyleProp<TextStyle>,}If yes, why ?
View ArticleError passing route name as parameter to navigation function, react-navigation 6
After updating to react-navigation 6x when passing the navigation function it reports this error:According to the documentation I need to type my createStackNavigation, I did, but it goes with an...
View ArticleHow do you convert a class component into a function? (React)
I'm trying to use hooks in this function, but first I need to convert this class component into a function. I'm struggling to understand how render methods and constructors work in functions and could...
View ArticleHow to check instance of parameters in function?
I have to different interfaceinterface Vehicle {// data about vehicle}interface Package {// data about package}I have a component that in it's props can receive either of them (and maybe more in the...
View ArticleShare and sync data between Users with Realm, MongoDB (Atlas) & React Native
I am working on an mobile app with react native and Atlas Realm + MongoDB backend.Main functionality should be to share and sync a user generated document between other users based on invitation.So i...
View ArticleHow to use generics defined in @types for a react native library
I have been trying to use the Agenda component from react-native-calendars library in Typescript. The issue I have been facing is that the type definition makes heavy use of generics mainly TItem to...
View ArticleTypescript: Property "navigation" does not exist on type Omit react...
i am trying to refactor my code in react native from javascript to typescript with this tutorial: https://reactnavigation.org/docs/5.x/typescript/#nesting-navigatorsBy doing types for react navigation...
View ArticleScreen mount twice when i navigate to other screen and quickly re navigate to...
i have a problem in navigation lifecycle, wich when i navigate from screen to other the last one dosen't stay focus and quickly re navigate to the previous screen.Please if anyone can help me.This is...
View ArticleGoogleSignIn in React Native Firebase aplication doesn't work
I was developing an React Native App which integrate Firebase as Authentication System of the App.The App compile fine, but when I try to invoke the GoogleSignIn method, the App says the message on the...
View Article