react native 0.71 syntax error when adding new components or screen
As you all guys know react native recently upgraded to 0.71.0 version and I started new project and using cli. Whenever i try to add new components or screens i get syntax error with message "none of...
View ArticleCan't add multiple childen in react
When I try to add icons inside bottom tab https://icons.expo.fyi/it shows Tab.Navigator errorThis JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were...
View ArticleCan't duplicate function
When I try to duplicate functionit show RootNavigator errorDuplicate function implementation.ts(2393)I try add export at the top but won't workexport...
View ArticleCan't import navigation screen
When I try to replace TabOneScreen with a custom screen name DashboardScreenimport DashboardScreen from '../screens/DashboardScreen';It showModule...
View ArticleEvery time im running removeElement, it clears my state
When i press my fetchApi button, a new address appears, and if i keep pressing, it keeps adding more address, but when i press the removeElement button, it deletes all the addresses, how can i make it...
View ArticleVSCode doesn't import component in typescript
VSCode with typescript has this awesome feature where if you do CMD+. on a module that hasn't been imported yet, it gives you the option to automatically import that module or import all modules that...
View ArticleDefining just the interface and type for class
I want to define just the interface and type for the class..What am I doing?I am creating a React Native Turbo module which require me to pass interface which extends TurboModuleThis is class looks for...
View ArticleI have a problem with my provider to render different navigator stacks
I am implementing a provider which helps me to have the state of my user in different views, the main function of this provider is to render different one or the other stack navigator depending on...
View ArticleWhy my redux state not updating in all function?
The project isn't a React WebSite, it's a mobile app written in React Native and i'm using Redux Toolkit.I've a React component with a Redux store (it's user), and a function (onSwipe) that i pass to...
View Articlesocial-auth-app-django Google Login and React-Native
I'm using the social-auth-app-Django library on my Django Rest API (DRF) to authenticate users with social providers. I am using the expo-auth-session library (though this could be changed) in my React...
View ArticleReact question about geofire and useEffect
I have a question about react, Although I don't have much experience. I'm trying to do a query with geoFire and get the location after that find the data in my database.Geofire creates an event that...
View ArticleHow to mock Firebase auth providers such as FacebookAuthProvider?
I am trying to mock react-native-firebase's firebase.auth object so that it will return a credential to the code under test so that I can test my method.I have the following code under test:public...
View ArticleNavigation to another stack bottomNavigation react-native-paper
don't know how to navigate to another stack using react-native-paper and react-navigationfunction RootStack(): JSX.Element { return (<NavigationContainer><Stack.Navigator screenOptions={{...
View ArticlePossible to create React Native Stylesheet with custom style props?
I have a custom Text component which takes a custom style prop which is used to set the fontFamily by a loaded custom font. The purpose is to make sure the text font is only one of the loaded...
View ArticleProperty * does not exist on type typeof * - static parent method
React Native, TypeScript code JS(non-TS) ORM module:Parent BaseModel:export default class BaseModel { static createTable() { ... } ...My model of Animal does NOT redefine the method, it's just defined...
View ArticleExecute a function once a month and preventing users from working around it...
I would like to unlock a feature once a month in an app I'm developing.So I thought I'd keep the last time it ran stored on the device and once it's been more than a month I would run it again.But I...
View ArticleIf I have 4 react components (let's say some custom buttons), how do I render...
I have been trying to do this but I just can't figure out how. I'm thinking about putting all those 4 buttons components in an array and then change the position to the 0th index if it was last pressed...
View ArticleScrollView Inside FlateList Not scrolling
i want to ScrollView inside FlateList i want ScrollView enables only when landscape mode is active but when i set scrollViewEnable false iner FlateList not scrolling tocan you give me an example how to...
View ArticleIf I have 4 custom login buttons and I want to show the button used to last...
I have 4 different login method for my app. Each method has a separate component associated to it. I want to rearrange the buttons based on what was the last used login method.I already have a way to...
View ArticleError when using write() in "react-native-ble-manager" library with status=3
So, I'm trying to send data to BLE device.My phone and BLE device are already connected.My function:const sendCom = async () => { const data = utf8Encode('1') // convert data to bytes const service...
View Article