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

Jest firestore 'where' query doesnt work in testing. Snapshot gets all...

Im trying to make a test that a function gets all documents from firestore where documents user (id) and the users id match.This is the function:export const getUserDocs = async () => { const user =...

View Article


Typescript ESLint, is it possible null check in global function and it pass...

const isNotNullNumber = (e: number | undefined) => { if (e !== null && e !== undefined && e !== 0) { return true; } return false; }; //pass eslint if...

View Article


How to use prop-types as type definition in typescript?

Situation:Consider having the myTypes constant holding prop-types (written somewhere in a file called my-component.js), like below:import React from 'react'import { View } from 'react-native'import...

View Article

Argument of type 'string' is not assignable to parameter of type '{ results:...

When I'm trying to pass the result.nativeEvent.message to other function im getting the Argument of type 'string' is not assignable to parameter of type '{ results: string; } on...

View Article

Property 'category' does not exist on type 'Readonly' and Property 'data'...

I am trying to access the data from route.params sent from navigation screen, App is running fine but typescript conplain about my code "Property 'data' does not exist on type 'Readonly', Property...

View Article


undefined is not an object (evaluating 'item.Attraction.Name')

I have the following request in Get:app.get('/attraction/:routeid', async(req,res)=>{ let response = await attraction_routes.findAll({ attributes: ['attractionId'], where:{routeid:...

View Article

React Native - how can I render the next component in a loop onPress?

I'm trying to render the next Question card in a loop when the card is tapped, but my current solution isn't working. The first Question is shown correctly, but according to console, when I tap it,...

View Article

React Native: How can I send events from iOS (Swift) back to JavaScript?

I am working on a project where I want to integrate React-Native into a native Swift app. To make sure both sides are aware of state, I've made a 'message bus', A mechanism through which events can be...

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


How to convert base64 to xml svg format in React Native...

WHAT I NEED :I take a base64 string from react-native-canvas-signature library. However, I have to send it to api while converting svg xml format. The example format is:<svg...

View Article

Using useCallback vs Moving Function Inside useEffect and Remove Dependency

Question is very clear as shown in title and I wonder are there any specific differences between these two different functional implementation with useEffect?Here's an example: const...

View Article

Error: Text strings must be rendered within a component. in React-Native...

I've trued some of solution with this problem, but My app couldn't solve this.I've tried these solution.Render Error message said in there are errors in "renderApplication.js"files.I found some of the...

View Article

Image may be NSFW.
Clik here to view.

error while using expo-image-picker:TypeError: undefined is not an object...

im using expo-image-picker i am facing thisError: Requiring module "node_modules\expo-image-picker\build\ImagePicker.js", which threw an exception: TypeError: undefined is not an object (evaluating...

View Article


React-native Unable to resolve module styled-components/native

The importimport styled, {ThemeProvider} from 'styled-components/native';package@types/styled-components-react-nativetsconfig.json// prettier-ignore{"extends": "@tsconfig/react-native/tsconfig.json",...

View Article

Is 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 Article


Error: [BABEL]: Cannot find module './built-in-definitions' in...

when I run the command to build the react-native library:yarn prepareshow error:yarn run v1.22.19$ bob buildℹ Building target commonjsℹ Cleaning up previous build at lib/commonjsℹ Compiling 1 files in...

View Article

Image may be NSFW.
Clik here to view.

Render list with values in same place

i have one issue this issue consists in render values on my list if exists in my db but i don't know how i can create this, because i don't know how i can take this values and set into my...

View Article


undefined is not a function (near '...movies.map...')

I am trying to render the API data onto the page but get this error|undefined is not a function (near '...movies.map...')|how can i stamp my result in the page ?why in movie.title give me red...

View Article

react-native-dotenv with multiple enviorments only runs local env in react...

i'm trying to expo start my react native with typescript app on 3 different environments-development, local and testing. but when i run APP_ENV=testing expo start or APP_ENV=development expo start it...

View Article

No overload matches this call error: React Native Navigation

I'm pretty new to React Native and React Native Navigation. I'm getting an error stating:"message": "No overload matches this call.\n Overload 1 of 2, '(...args: never): void', gave the following...

View Article
Browsing all 6287 articles
Browse latest View live


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