Expo Location Error: Not authorized to use background location services
I'm creating a app that needs the current location of the user and need to run in real time. i'm using the Location.startLocationUpdatesAsync() from expo but i'm getting the error below.The app.json is...
View ArticleHow to define TypeScript Type for Object with both static and dynamic key?...
I have a normalized redux structure addressesState as below. I need to define the type of that as specified in the commentsinterface iAddressItem { firstName: string; lastName: string; street:...
View Article'React-Native-Share' Library fails to compile on Web
I've been creating react-native app to share text or images to social platforms.I've used React-Native-Share library to serve the purpose of my application.This library is working fine for iOS &...
View ArticleHow to filter db data based on a JSONB column in KNEX using Typescript /...
Please help point me in the right direction: I have a jsonb column in one of my tables. It saves stringified data like this:entry: { 1: "data1", 2: "data2"}If I want to get entries whose key 1 is...
View Articlethis keyword is returning true/false instead of element object in react/...
I recently started learning/coding in react and I need help in fixing a bug. I have 2 checkboxes on my application screen but those checkboxes should work like radio button which means when I check one...
View Articlehow to display Quiz randomly and without duplication in react native
everyone.I try to make Quiz app randomly and without duplication in React Native .Successfully Quiz are displayed randomly.But I don't know how to display them without duplication .I am very new to...
View Articlereact-native-web typescript error when passing props to svg component
I've configured metro and webpack to import svgs like so:import PlayIcon from '../../assets/icons/play-icon.svg';...return () => <PlayIcon />The problem is when I try to pass props, I get a...
View ArticleIs there a way to find length of FlatList in React native
I have a list of ltem, I want to know the size of list I am using FlatList to display the Curosel item in horizental scroll view please some.help
View Articlereact native app crushes after using setState
I'm trying to build a custom password component which menage is own state, now the problem is that when I click on TextInput.icon the app stop responding. P.s the this component is running inside of a...
View ArticleHow to load script in React-native?
I want to load the script in my React native project. I would like to make a custom Razorpay payment. and we use typescript. I tried many ways but I am not getting a solution. Please give me a solution...
View ArticleI cannot use "this" on a function
I am new to React Native. I want to create a simple counter button. I could not use "this", it gives error ('this' implicitly has type 'any' because it does not have a type annotation.). You can see my...
View ArticleNavigation is undefined in Drawer Content
I am currently trying to build a React Native project using typescript. My screens are configured as follows:export default function Navigation({ colorScheme }: { colorScheme: ColorSchemeName }) {...
View ArticleHaving issues setting a state to be immediately read by calendar strip on...
I'm currently working with react-native-calendar-strip, which displays a horizontal/lineal/weekly calendar, whatever you call it, my idea is to click on a specific day and highlight it, but the way...
View ArticleCode Sharing between React and React Native
i am trying to find a good way to share codes between projects like Types and Redux Stores. The best 3 methods i've seen is:Npm package - creating a private package.But if i wanted to change something...
View ArticleHow to use DateTimePicker in react native with react-hook-form (Typescript)?...
I'm making a form in react-native and I'm not able to include the react-datetime-picker library in that form when I click the subtmit button.I tried to do this at the expo in a number of ways and I had...
View ArticleHow to verify Interface with Axios GET response using TypeScript
Data is coming back successfully from the API. This is my first time calling an API using TypeScript. The problem I am having is that I am not sure if my interface successfully verifies the API data or...
View ArticleHow do i trigger an onPress event on a screen render in react native?
Basically what i'm trying to do is to trigger the onpress event whenever i get on this screen, i know how to do this on a non-hooks project, but i never encountered this case on hooks.i got a calendar...
View ArticleHow to dispatch an AsyncThunk with the createAsyncThunk helper
I am currently trying to learn some typescript/redux/reactnative.I think I have gotten the basic concepts of how redux handles state management. I am now however a bit stuck on trying to get...
View ArticleAxios request getting network error on Expo
I have an expo mobile application running on an Android emulator and I'm trying to make a request to a local Node.js API. The request is through HTTPS protocol so I created self-signed certificates to...
View ArticleWhy I got an Error: Can't display popup. Could not find view with tag XXX...
Hello Everyone!I want to show a native popup menu in Android using UIManager.showPopupMenu() method, but I got an Error Can't display the popup. Could not find view with tag XXX at the docs the first...
View Article