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

Change Item of Flatlist on click of button which is outside of it in react...

I have an array of images which I am able to display using FlatList, also when clicked on an image it also displayed in bigger size which is outside FlatList. I have a left and right icon beside the...

View Article


How do I use universal links with Expo?

We have the server set up and configured to return certain paths under /.well-known/apple-app-site-association. When we publish our app, the "associatedDomains" key in our app.json instructs iOS to...

View Article


Parameter 'item' implicitly has an 'any' type

I'm working on the UI Kitten component called Autocomplete.I've followed their Documentation, but since it's in React and not typescript, and I'm quite new on typescript, I always get the same error of...

View Article

Lights don't work in expo-three / threejs

can someone help me?I recently found out who I can use the ThreeJS library with react-native, and that's amazing! I did a little experiment and worked, but I had some trouble with the...

View Article

defined global variable cant be resolved by dependent

I am a newbie in typescript and i need your help.I have a moduleA which used a global variable global.LOCALEon moduleA/src/global.d.ts, I have declared the locale such asdeclare namespace NodeJS {...

View Article


eslint@typescript-eslint/no-unsafe-return throws error message when using...

I have a react native typescript project where I am using inline require() statement to import images for example.<Card.Image source={smallPhoto ? { uri: smallPhoto } :...

View Article

how to type an array of objects coming from realmDB?

Error: Argument of type 'Results<Courses[] & Object>' is not assignable to parameter of type 'SetStateAction<Courses[]>'.Type 'Results<Courses[] & Object>' does not have the...

View Article

How to save the date in an Ionic React app?

I am new to React and Ionic and builded the Ionic React photo gallery app with the help of this ionic tutorial. Now I also want to add the date the picture was taken but I just did not figure out how....

View Article


How to use AWS Amplify in React Native with Typescript Project?

I'm trying to add Amplify Authentication in my react native project which uses typescript.There is a package given in amplify documentation 'aws-amplify-react-native' which is used as a middleware to...

View Article


'Unnecessary' TS issue upon providing a prop to a native ios component

I created a native module using Swift called CounterView, and when I use it as such:<CounterView style={{flex: 1}} />I get this nasty warning! But the thing is, everything works. The error goes...

View Article

How to place pagination inside the view component using react native?

In my scenario, pagination component I am using by react-native-snap-carousel. This component I am not able to place inside the view component. I am trying to render the pagination component to inside...

View Article

React Native Detecting Beacons in Android/iOS fails on background

React Native Detecting Beacons in Android/iOS fails on backgroundWe used the library https://github.com/MacKentoch/react-native-beacons-managerSo far its working well in foreground but as per checking...

View Article

React native typescript how to type FlatList

I don't find the way to type a FlatList in react nativeexport interface Category { id: string; title: string; bg: string;}export const CATEGORIES: Category[] = [ { id: "c1", title: "Italian", bg:...

View Article


How to change the properties of a styled text component dynamically that is...

I have a component that displays numbers from an array. I style these numbers with styled components. However, I want to make it so that if the numbers are below or equal to a variable(filled: number)...

View Article

Image may be NSFW.
Clik here to view.

Material-ui suggestions does not show all the retrieved options

I'm working on a PCF component for Dynamics CRM based on suggestions from an API call. My problem is that i cannot show all the values retrieved from a server. It's seems like "options" is not updated...

View Article


How to dynamically create an array based on length and populate it...

What I have now: As of now in my Storybook file, I create an array and pass it through as a property of my component.What I am trying to achieve: However, I wish to simply pass length as a prop and...

View Article

Image may be NSFW.
Clik here to view.

How to type Tab Navigator in react navigation 5 and TypeScript

import React from 'react';import { Text, TouchableOpacity, View } from 'react-native';import { BottomTabNavigationProp, createBottomTabNavigator,} from '@react-navigation/bottom-tabs';import {...

View Article


Save value from custom hook to state

I am trying to save a value from a custom hook, which is fetching data for the server, to functional component state with useState, because I later need to change this value and after the change it...

View Article

how to check the height of my component with hook ref from react?

I'm trying to check if the height of my button is 50 to display a different spinner but even the height being 50 displays SpinnerTwo, does anyone know the problem?const refButton =...

View Article

React-Native: What can cause a module to be null?

i'm working on a react native project with expo and yarn and needed to install a new dependency to get device manufacturer (it's react-native-device-info if you are wondering). I installed it...

View Article
Browsing all 6287 articles
Browse latest View live


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