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

Need help fixing or suppressing this tslint error: TS2742

I have this file in a react native project:import styled, { withTheme } from 'styled-components';import { BaseText } from '../BaseText';export interface BodyProps { textAlign?: string; fontSize?:...

View Article


Image may be NSFW.
Clik here to view.

How can I use TypeScript in this case?

I have a Node.js server on my root directory and in the Client directory is a React Native app (expo), both using the TypeScript template. The issue is that the server what every file in the src...

View Article


Typescript forwardRef error in react native

I have onboarding and slide components . I am passing ref as a prop to slide component from onboarding component with forwardRef . It works fine but typescript gives me an errorMy components are like...

View Article

How to call one saga at the end of another redux-saga

I have two sagas, one gets the cities, the other is the weather forecast for these cities (according to ID specialists), how can I make it so that the second saga is processed at the end of the...

View Article

Image may be NSFW.
Clik here to view.

Successfully uploaded image to Cloudinary from React Native does not return URL

I'm trying to upload image from React Native app to Cloudinary.The image appears on Dashboard, but I don't get secure_url.Here is my code: async uploadImage(photo: ImagePickerResponse, id: string):...

View Article


React: Build Connections Among Component

I am a beginner of React JS. Messing around to achieve VanJS event listeners.For layout, I decide to store things like a panel, a button as individual component.Now, I have a component Movie and...

View Article

How to call one saga at the end of another redux-saga like a async await in...

I have two sagas, one gets the cities, the other is the weather forecast for these cities (according to ID specialists), how can I make it so that the second saga is processed at the end of the...

View Article

How to bundle Typescript with React native

I'm trying to create a library for react-native, now I'm using typescript and react-native-webview but now stuck in bundle using webpack. Here is my webpack configmodule.exports = { mode: 'production',...

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


Formik React-Native - How to Show Yup Validation Errors on Each Field in an...

So I'm trying to make a list of contacts, here's the code:Yup Schema:export const Schema = Yup.object().shape({/**other fields */contacts: Yup.array().required('Required field').of(...

View Article

Is there an automatic software architecture diagrams and dependency graphs...

I have a need to read(and fix) third party softwares, wich in most times are really messy and hard to understand the architecture logic aplied.Today I`m using dyatko/arkit, wich is already helping me a...

View Article

How do I pass a Type to a statelles component in TypeScript

Well, I would like to use one component to render differents types of data, since im using typescript, i need to pass the type of data my flatlist will be using, by now, i only have music and playlist....

View Article

Image may be NSFW.
Clik here to view.

Set Up Custom Component Type That Using TextInput props and make it work when...

I am creating a custom component, the script is written in TypeScript using React's HooksMy component will be using some of my typescript type and mix it with TextInput type (so i can access TextInput...

View Article


React Native: Set React Navigation's Screens Headers

I want to have the tabs from BottomTabsNavigator and the header from StackNavigator in the case of jwt = true.Do someone know how can I do it?You can find my navigation jsx below.If I didn't give...

View Article

mobx: class method call when changing data

Сan I use the Mobx library to call a class method when data changes?For example MyObject writes container['item'] = 10 and as a result the myaction method is called.class MyElement extends...

View Article


Could not locate shadow view with tag #5469

In my react native app, I have a screen called the HomeScreen (though it's not the first screen that we see when we open the screen). When I visit this screen, I don't see any warning. From the...

View Article

Tests fail to run with Jest and React Native

Using React Native with Jest and TypeScript, when trying to run the tests I get:Test suite failed to run [BABEL] unknown: Preset /* your preset */ requires a filename to be set when babel is called...

View Article


Type for material from './native-base-theme';

I am using a custom native-base style theme. It was created using this method:https://docs.nativebase.io/Customize.html#theaming-nb-headrefimport material from...

View Article

React Native: I am useing date time picker from community and it is...

I am on GMT+3 and when I use @react-native-community/datetimepicker. It converts my date automatically to the GMT+0. You can check my code below.Do someone now why it is converting?Thank you!DATE TIME...

View Article

Types for cardStyleInterpolator props

I am using this in my navigation stack:<NavigationStack.Screen name="UserMenu" component={UserMenu} options={{ headerShown: false, cardStyleInterpolator: forSlideFromLeft, }} />const...

View Article
Browsing all 6214 articles
Browse latest View live


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