React Native - Invariant Violation: Module AppRegistry is not a registered...
I have started getting this error Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) since yesterday, my application was working and all of sudden it...
View ArticleUnable to read the properties of my react navigation object
I am getting the following error when I try navigate:Uncaught TypeError: Cannot read properties of undefined (reading 'navigate')Heres my main component:const Stack =...
View ArticleStop moment.js from converting time automatically based on local timezone
I have this format of date 2022-12-03T22:25:00.000+13I use moment to convert this date in this format moment(value).format('HH:mm')The problem is that when I convert it, the result is 10:25 not 22:25....
View ArticleFraming a logic for getting the week number using spfx react keeping Friday...
I have the following piece of code written in react-spfx:private weekNumber(){const months =...
View ArticleIs there a way to get typed theme from useTheme() hook in react-native-paper
Right now I'm following the themingreact-native-paper guide for custom theming. But when trying to consume the theme via the useTheme hook, it looks like that the response I've got as a theme object is...
View ArticlecontextAPI return state with undefined
I'm using contextAPI with useState, and the initial value is an Object with Themes.but when i give console.log this return undefinedand i created a custom hook for thisI used provider in App.when i do...
View Articleuser submitted oidc auth endpoint for expo react native app
I am attempting to build an app that is able to connect to different oidc endpoints depending on which URI they input.I havent found any documentation on changing or updating the 'expo-auth-session'...
View ArticleWhy don't absolute paths work when importing typescript files into other...
Backstory:I am gradually converting an existing React Native project to TypeScript. Absolute paths have been working for years based on my babelrc configuration.Problem:Since adding TypeScript,...
View ArticleImport and export (save and retrieve) all application local storage in react...
I am creating an app with very sensitive data, so I'm not allowed to manipulate data server-side or with any DB in the cloud.But I still want the app user to be able to save and retrieve the whole app...
View ArticleReact Native Paper FAB.Group Icon stays on screen after navigating to another...
Whenever I try to swop between screens the FAB still remains visible and sometimes interferes with the functionality of components on the lower part of the screen as if a large square is rendered over...
View Article`allowsMultipleSelection: true` throws error in expo-image-picker (expo SDK 46)
I have no problem selecting one image at a time with allowsMultipleSelection: false. But with allowsMultipleSelection: true, it throws an error.Note: I do have allowsEditing: false.What's happeningI...
View ArticleI can not make POST/UPDATE/DELETE api request in react-native with Axios
I need help please. I'm working on a react-native app and I've been stuck here for a week.Whenever I tried getting a request I get the response as expect but when I tried to make a POST request in...
View ArticleHow to pass parameters in StyleSheet in React native with Typescript
I have just switched my Javascript react native project to a Typescript project, but when I changed it, I got a lot of errors on inserting functions in StyleSheet()Previously i used to do it like...
View ArticleIdentifying types in react navigation navigationRef
I am trying to add types to my TS version of this function, and am having a bit of trouble.From the React Navigation docs:// RootNavigation.jsimport { createNavigationContainerRef } from...
View ArticleReact Native SectionList: What are the correct TypeScript types
I'm building a React Native app using TypeScript. I'm trying to use a SectionList. I followed the docs, and here is my code: renderSectionHeader = ({ section: { title } }: { section: { title: string }...
View Articleaxios is giving Typescript error in React Native project
I am getting a typescript error in my React Native project. I am not sure how to address this. Im new to Typescript. I have a function that is called throughout the app. I have to append headers to my...
View ArticleStoryBook with react Native
My group want to use StoryBook for document our app. But we are using react native, and we want to see the storybook in the browser like using storybook in front end. There is how?Because all videos...
View ArticleHow to make selections by pressing and dragging your finger across the screen...
I'm doing a word search game with react native and I'm having trouble bringing the matrix information to save in a state,I've tried with gesture-handling but I can only get the positions but I can't...
View ArticleInvariant Violation: requireNativeComponent: "RNSVGSvgViewAndroid" was not...
I am having a headache with the error mentioned in the title.I am using react-native-gifted-charts (https://www.npmjs.com/package/react-native-gifted-charts/v/1.0.3)The charts works perfectly in ios...
View ArticleHow to import image in .tsx with react?
I have problem with image importing in typescript. Previously I used the img src="" but it saysView config getter callback for component img must be a function (received undefined). Make sure to start...
View Article