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.

'Button' cannot be used as a JSX component

These ESLint errors happen with components imported from React Native Paper imports since Expo upgrade from SDK 43 to 45. The project is able to run though.import { Button } from...

View Article


React-native-svg library / Ble data not appearing in graph

I'm new to drawing a graph with react-native. The problem is, I can read the data sent with Ble as a value on the screen, but I'm having trouble making real-time graphs. There must be a mistake...

View Article


Image may be NSFW.
Clik here to view.

React Native - How to change the style and properties to a pressed row inside...

I would like to change the style when the button is pressed, but just change the pressed one, not all the row list. How can achieve this in React-native. This is what I have tried.//hooks const...

View Article

React Native multiple apps with one core code package

I have two applications written in React Native.Let's call them PRO version and LITE version. The PRO version has a huge technology debt (old react-native, no Typescript). The LITE version is up to...

View Article

Resolve @ReactMethod to undefined instead of null

I'm creating a React Native bridge in which I'm using undefined as a default value for null. When a value returns null from Kotlin and we resolve the promise with that value, it appears as null on...

View Article


react native FaceBook SDK get token for IOS is returning wrong signature

I am using the latest Facebook SDK react-native-fbsdk-next, I managed to make it work for Android, but it is not working for IOS...

View Article

Real-time line charting with React-Native

I'm new to drawing a graph with react-native. The problem is, I can read the data sent with Ble as a value on the screen, but I'm having trouble making real-time graphs. There must be a mistake...

View Article

React native : import from a distant directory (and got an error)

I put all my images in a folder at the root of my project and I'm using them in the code that I write.Howether there seems to be an error (ex : Cannot find module '../../../assets/Structure.png' or its...

View Article


Image may be NSFW.
Clik here to view.

tsconfig.json shows error: Entry point for implicit type library 'glob'

I have a Monorepo which uses Typescript. I have a common folder which shows this error on the top of the file -> Entry point for implicit type library 'glob'. I am not sure what is wrong with the...

View Article


React Native Formatting User Address String

I'm trying to format an address string in React Native.The address string data given is 123 STREET, 123 CITY, PROVINCE 123and I want to show only PROVINCE 123What should I do.Any help will be appreciated

View Article

Custom theme is not applied to the react-native-elements components

I've created a custom theme and passed it to ThemeProvider, but it hasn't been applied to react-native-elements components. I'm using react-native-elements version 4.0.0-rc. Here is my code:Custom...

View Article

mockReturnValue is not a function error, What can I do here?

I am getting the error TypeError: _loginViewModel.LoginViewModel.mockReturnValue is not a functionHere is my setup/ Its a typescript project.import React from 'react';import renderer from...

View Article

Typescript "error a constructor method accessor or property was expected" error

I'm new to typescript. In this problem I need to increase the counter of "setBigCar" or "setSmallCar" when the "carSmall" is false or the other way around then display it on my browser const pageHeader...

View Article


Image may be NSFW.
Clik here to view.

With react-native-svg-charts I can't see the linechart on the screen

I'm trying to show graph in my screen. I took data from BLE and show but I can't make graph with my BLE values. I wrote graph code into Service component. Because, BLE values ​​are within the...

View Article

Typescript error for Icon in react native

when using like so: -<RNPickerSelect...Icon={() => {return <Ionienter code herecons ... />;}}/>============Giving This Error in console and file also. =================function():...

View Article


useReducer integration with useContext not updating properly

I`m learning React Native with Typescript. I'm currently trying to consume Context from components far down the "component tree" using useReducer funtion. The reducer seems to be working fine,...

View Article

Image may be NSFW.
Clik here to view.

React Native - expo/vector-icons typescript type definition for icon name

I'm trying to find out the type definitions for the icon name of expo/vector-icons, since I am intending to use it for a component props.I am import expo/vector-icons like and and defining interface...

View Article


React Navigation 6 : Remove screen which prevented by `beforeRemove` listener

I am new with React Navigation 6.I have a screen with beforeRemove listener with a dialog to ask user to exit on confirmation.My problem is the removing screen which prevented by beforeRemove...

View Article

Image may be NSFW.
Clik here to view.

'Button' cannot be used as a JSX component

These ESLint errors happen with components imported from React Native Paper imports since Expo upgrade from SDK 43 to 45. The project is able to run though.import { Button } from...

View Article

Image may be NSFW.
Clik here to view.

React can not POST

I have using a payment service.And this service posts a token to a react page.But the page showing CAN NOT POST error.Posted url is Callbackurl.The service posts the token correctly.There is no problem...

View Article
Browsing all 6287 articles
Browse latest View live


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