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

Type of image require in React-Native MobX-state-tree: "Possible Unhandled...

Probably I'm doing it wrong, but what is the type of an "image" in a mobx-state-tree model?How can I add a property to a MST model in react-native to hold a static image?const default_img = { img1:...

View Article


Image may be NSFW.
Clik here to view.

React Native Vscode TypeScript debugger stepping extremely slow

I've got a few projects that use TypeScript (some with React, some with React Native), but for some reason, a particular React Native project started to get extremely slow while debugging. Here's an...

View Article


want to be able to send requests from the client using python code

I have a website that I want to automate and send requests from it. The final goal is to give the ability to the user that already was logged in, and has his session-id to send the requests from a...

View Article

ESLint / Prettier / Husky indent problems in React-Native app

I have a problem, when I commit, I have Husky which checks for indentation errors / usual errors (like props are not used.... etc). My app is a TypeScript React-Native app.I am getting the following:...

View Article

why httpOnly cookies are not accessible in react native?

I just sent a request in a typescript file to endpoint that does redirect and at the ends returns response with cookie that is marked as httpOnly. When I am executing the same code (call the function...

View Article


Matter.js...... Handling SVG file in React Native

I try to making Roll Ball Game by React Native.I want to generate matter-js body objects from SVG file.I found that I couldn't use Matter.Svg.pathToVerticesHow can I generate matter-js body objects...

View Article

Query Runs With hardcoded value but not splitted string

I am running a graphql query inside my handleSubmitthat uses the name that user inputs and splits it into firstNameand lastName. The behavior works perfectly with other where inputs where I am using a...

View Article

Integrate Formik With GraphQL Mutations

I had a native base's input field which reads a value that is then used in a graphql query and mutation. I wanted to add Formik Validation to it. I read that in order to use Formik validation, I would...

View Article


Image may be NSFW.
Clik here to view.

getting type error for style transform properties when with...

I'm using"react-native": "0.59.10""react-native-reanimated": "^1.3.0"with typescriptI'm getting type error for transform propertiesconst Example = () => { const { translationX, gestureHandler } =...

View Article


print the query - graphql printer

Is there any way I can see an exact query that runs in my app and print it on the log?For example, I am running this query:const handleSubmit = React.useCallback(() => { loadUsers({ variables: {...

View Article

React native component as typed model prop

I am trying to make a class that looks like thisexport default class IconModel { name: string title: string iconType: "AntDesign" | "Ionicons" component: React.Component //What type should be used?...

View Article

React Native/Javascript - Cannot update view after async fetch function....

the code I have put down below will call fetch() to recieve some data and only after fetching it will display one output. But this always fails to update the view after the async call. I'm new to this...

View Article

Pass a splitted string as a variable of the query

I am running a graphql query inside my handleSubmitthat uses the name that user inputs and splits it into firstNameand lastName. The behavior works perfectly with other where inputs where I am using a...

View Article


Use Formik When GraphQL Queries Are Already Used

I had a native base's input field which reads a value that is then used in a graphql query and mutation. I wanted to add Formik Validation to it. I read that in order to use Formik validation, I would...

View Article

react-native-vector-icons/MaterialIcons jest-expo snapshot test error with...

I learning jest, writing my first snapshot tests for components using react-native & expo. I can run the test without the Icon component from 'react-native-vector-icons/MaterialIcons' inside my...

View Article


Type 'typeof class' is not assignable to type 'ComponentType'

I am trying to use react native navigation using typescript and I am getting a Type 'typeof LoginScreen' is not assignable to type 'ComponentType<any>' error when trying to connect my screens....

View Article

How to create global android device back button handler using React Native?

In my scenario, I am trying to create global class for android back button handler and reuse it in multiple screen class files. How to do it? I tried below code but I dont know how to access common...

View Article


React Native: Show runtime errors while compiling

I am using TypeScript in my react-native project and it works fine. The only problem I am having is that, the IDE shows me the errors and everything. But I am still able to run my project even if there...

View Article

Unable to Type in Field

export const Page: React.FunctionComponent<PageProps> = ({}) => { const initialValues: FormValues = { friendEmail: '', }; const validationSchema = emailValidationSchema; const getFriendId =...

View Article

Type definition for react-native-checkbox

I'm trying to create a type definition file for react-native-checkbox. Here's what I have in the .d.ts file:declare module '@react-native-community/checkbox' { import * as React from 'react'; interface...

View Article
Browsing all 6212 articles
Browse latest View live


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