Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Browsing all 6287 articles
Browse latest View live

TypeScript Error 7053 - Creating a custom React component that overrides...

Here is the code for my custom component. Getting an error that it doesn't like that I gave 'type' the type of string. What is the proper way to define what 'type' is? I'm assuming I would need to...

View Article


My Ignite typescript project post api call is returning an empty object as...

I have an ignite react native project. and I am trying to consume an APOI from the app and My Ignite typescript project post API call is returning an empty object {} as a responsehow do I call an async...

View Article


Typescript useState Expected 0 arguments, but got 1

I encounter a problem with useState. I try to put a variables initial value into false but the VSCode tells me that it expects 0 arguments on useState function call.Can I get some help?VSCode...

View Article

React Js, Web Pack - not able to import css file from node_module into a...

I'm using the react-html5-camera-photo node module in my project to take a photo from the camera. The library requires the component using the Camera component to import a css file...

View Article

expo app with testing react-native-testing-library and jest-native "has no...

I'm trying to use jest-native as extra matchers and i'm having an installation problem i think...I am on a react-native ts app with expo and here are my...

View Article


headerTitleAlign: 'left', does not work in EXPO with TypeScript Tab Project

is my code something wrong?I just want to left-justified the header title "RumoR"I have tried, textAlign inside headrStyle, and did not work.<Stack.Navigator screenOptions={{ headerStyle: {...

View Article

Platform specific import component in react native with typescript

I am using react native with typescript. I have a component with the following structurecomponent - component.ios.tsx - component.android.tsxNow I want to import the component. So, I am doing...

View Article

How do I implement a negative look-behind regular expression without using `(?

I know about the negative look behind (?<!) operator, but it appears that the Javascript engine used in Expo/React-Native does not support it. What I want is to implement the followingexport...

View Article


Typescript - How to type guard the existence of a module when using dynamic...

I'm currently using 'react-i18next' and 'i18next-locize-backend') in react native.I want to use locize differently for each environment(development, production).For example, in the production...

View Article


find closest future date and time from today's from in json response

I am getting a response from my api where start_time is given. I want to extract the id from json whose next date time is closest to current date time which does not include dates from past.An example...

View Article

I can't use the values ​inside the render item

I can't use the values ​​inside the render item, it doesn't recognize the ItemTrending interfaceinterface ItemTrending { id: number; name: string; description: string; image: string;}const...

View Article

react native : How to increase the font?

In my example I want to increase the font of the variablesWhat is the way to increase the font of elem.Sampling_Method_Codein my case ?var digumMethods = ''; execDetailData.forEach((elem) => {...

View Article

Image may be NSFW.
Clik here to view.

getting error `malformed calls from JS` when using...

I am using react-native-community/datetimepicker to select a date. It works fine when I select a date for the first time. But if I again try to open datepicker then it is giving me error.Below is my...

View Article


React Native image import with import() instead of require()

Is there a way of importing an asset in React-Native dynamically with import(...) instead of require(...)?We are using @typescript-eslint/recommended and I'd like to keep the rule...

View Article

React Native navigation (4.x) props become null between screens

I have a stack of screens that are used to create objects that will be displayed at the end.While passing parameters through screens there is no problem until the last one.When you confirm on the last...

View Article


Image may be NSFW.
Clik here to view.

expo ios simulator 'could not connect to development server' error(works on...

I was developing a chat app in practice using react-native expo, but when I suddenly executed "expo start" in the usual development flow, the error "could not connect to development server" was...

View Article

react native typescript 'string' is not assignable to parameter of type...

[I keep getting the error that says 'string' is not assignable to parameter of type 'never' in react native typescript and I don't know why. Can someone help me fix this bug.Thank you in advance.]1code...

View Article


Image may be NSFW.
Clik here to view.

How to add space after/before '{' and '}' in WebStorm?

I am a bit familiar with JetBrains products and I know I can set style for the files I am working on. However, I am not able to find where to configure my .tsx file in order to see my desired style....

View Article

Image may be NSFW.
Clik here to view.

expo OTA contains .env secrets React-Native

Problem: expo OTA bundle contains plain secrets.I have a question regarding "what is the right way to fix it".We have a expo react-native app written in typescript.This app call an API endpoints, after...

View Article

React Navigation v6 NavigationContainer linking attribute with nested...

I am using react navigation 6 with a root stack navigator containing a tab navigator. My linking attribute config looks like this in the App component:export default function App() { const linking = {...

View Article
Browsing all 6287 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>