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

Image may be NSFW.
Clik here to view.

How can I create a node module using lottie-react-native?

I'm building a React-Native component library.I built a simple loader using lottie-react-native.When installing the library locally, the component works.After publishing the package on github and...

View Article


react-native wifiye bağlı olan cihazları listelemek (ip ve mac) [closed]

Merhaba,React-native ile wifiye bağlı cihazları (IP ve MAC adreslerini) listelemek istiyorum. Bunun için hangi paketi kullanmam gerekiyor ? react-native-lan-port-scanner kullanmaya çalıştım fakat...

View Article


React Native Java Script Converted Into Type Script But Tab Navigation...

Thanx in advance ! i Converted Project into Type Script But When Tabbar comes i m facing this issue :------Errror-----VirtualizedList: missing keys for items, make sure to specify a key or id property...

View Article

React Native with TypeScript and cucumber-js: Importing TypeScript Functions...

As the title states, I'm looking to test some functions we use in a React Native app. Indeed, in the future I would like to write business functions based on our cucumber tests - so ideally my dev...

View Article

Arrow function passed as prop in React-Native is undefined in component it is...

I have a container component:import React, {FC, FormEvent, useState} from 'react';// utilsimport api from '../../api';import {useAppSelector} from '../../store/hooks';import CreateGroupPresentation...

View Article


React Native - Assign value from promise to variable

I have a couple repositories containing database calls such as getUser and getUsers.Now I export those repositories as followed:import { DatabaseBackend } from "../common/database";import {...

View Article

Image may be NSFW.
Clik here to view.

React Native Radio Button Inside ListView

DISCLAMER!! I've looked everywhere and tried: React-Native-Paper,react-native-radio-buttons-group and react-native-simple-radio-buttonbut have not found what I'm looking for. DISCLAMER!!I'm trying to...

View Article

React-Native convert string to tag

I use the following search algorithm, which takes a string and search for special keys and returns a result. Anyway, fuzzysort.highlight(result,"","") returns a string with two marks.For example:when I...

View Article


How to disallow StyleSheet creation in ESLint?

For certain folders I would like to enable StyleSheet.create() whereas for other folder I would like to disallow them.Now I figured out how to override ESLint rules per folder, but how do I disallow...

View Article


Image may be NSFW.
Clik here to view.

Resolve error: webpack with invalid interface loaded as resolver after Expo...

Since upgrading Expo SDK from 43 to 45, I am getting these ESLint errors in every file on the first import line. The project is able to run though.I've tried adding the...

View Article

How to make ESLint error when import is any of package, except given imports

I have the following ESLint rule. This disallows MyImport1 and MyImport2 of being imported from my-package."no-restricted-imports": ["warn", {"paths": [ {"name": "my-package","importNames":...

View Article

Could not find a declaration file for module 'styled-components/native'

If you add styled-components to your React Native project, there's a sub-directory for the native components specifically:import styled from 'styled-components/native`;export const Container =...

View Article

Cannot read property 'map' of undefined" Error in React

I have this code here. I keep getting an error:Cannot convert undefined or null to object (or sometimes TypeError: Cannot read property 'map' of undefined.)Here is my codeconst AdresList = (props)...

View Article


UseState react variable dosen't apply correctly - Possible Unhandled Promise...

I am completly new to ReactJS, Javascript and Typescript, but trying to be my best to improve,Sadly I am encountering a bug a can't find fix to :/So, it seems that if a declare a const variable with...

View Article

Using TypeScript Enum in Dropdown - What's an elegant way to append an "all"...

I have a lookup model being delivered via a REST API that I need to bind to a drop down.The TypeScript model from the API is effectivelyexport interface ResponsibilitiesLookupModel { id:...

View Article


Is it possible to create a strictly typed React HOC in Typescript?

As context, I'm attempting to create a higher order component to wrap React Native components and add some functionality based on a ref to the component.Short, untyped example:export function...

View Article

NodeJS how to export REST API endpoint/models definition to a typescript...

In order to have the least boilerplate code possible between my Client - Server stack i would like to define my REST Api & Model layer just once.So ideally i would like to have on the server side...

View Article


Image may be NSFW.
Clik here to view.

'Stack.Navigator' cannot be used as a JSX component

There is a type issue using react navigation, when use Stack.Navigation or Stack.Group from createNativeStackNavigatorThe issue saids that the types dont match with JSX.element at the end of the...

View Article

React Navigation navigation.navigate("SomeScreen") error in TypeScript

A common error which occurs in react-navigation, when using TypeScript, is:Argument of type 'string' is not assignable to parameter of type '{ key: string; params?: undefined; merge?: boolean |...

View Article

Separating Network layer from UI layer in React Native graphQL

I am using GraphQl with react native,when I use the queries on the same file ie. UI file then the queries are working perfectly but if I separate the queries and call them from different file...

View Article
Browsing all 6287 articles
Browse latest View live


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