How Can I Use Enum's Value in React Component
I defined interfaces into common folder, and then I defined an alias for that. I can use other interfaces for type checks but I cannot use enum's value. If there is an import issue or path issue, I...
View Articlereact-native - fetch: Network request failed
I am developing a app using React Native and expo. I want to fetch an API but I get this error.[Unhandled promise rejection: TypeError: Network request failed]-...
View ArticleHow create a react-native custom view with typescript
I want to create a custom view with react-native-modal in my custom view:type Props = {isVisible: boolean;setVisible: void }<Modal isVisible={props.visible}......><Button title="colse"...
View ArticleReact Hook Forms How to pass the errors as a props using Typescript
I'm defining a useForm.const { handleSubmit, control, errors } = useForm<{email: string}>();Now I'm creating a seperate component that will the input and I'm going to pass the useForm props i...
View ArticleDefining type for ReactNative composite component
I'm making a composite component. Then I have to define the type of it. For example, here is the sample composite component.const compositeComponent = ({ text, input }) => { return...
View Articlereact-native with Xcode 12.4 getting error while running from command line
Build Succeededinfo Installing "DerivedData/Build/Products/Debug-iphonesimulator/InSiteUI.app"An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):Failed to install the...
View ArticleHow to notify state change to another screen in Typescript React Native
My app have multiple screens. One of them is the login screen, which retrieves some basic user info from backend by submitting correct email and token.After login successfully, How do I notify the...
View ArticleReact-Native expo POST Blob
I'm using react native with expo and I'm trying to POST a blob image through fetch api. I'm using form-data format for the body and i have the next code: const blob = await response.blob() const form =...
View ArticlePorblem with passing data between screen (Too many re-renders)
I've got a problem with passing data between screens. Here is the screen where I'm taking input:import React, {useState} from 'react'import {View, TextInput, Button, StyleSheet,...
View ArticleComponent Exception: Too many re-renders
I' ve go a problem with passing data between screens.Here is the screen where i'm taking input:import React, {useState} from 'react'import {View, TextInput, Button, StyleSheet,...
View Articlereact navigation getparam with typescript
I am working on an app where I navigate from a FlatList to a custom component and I need to access the data i pass to the component. The FlatList component currently looks like this:import React from...
View ArticleHow to combine tab and stack navigation props in reactnavigation typescript...
I am trying to combine two navigation props But I am not sure how to do this. Earlier when I used to define only one route I used to do something like this. export type MatrimonyStackRoutes = {...
View ArticleWhy doesn't the image on the onboarding screen of this simple react native...
Hello to the intelligent developer who is aboded by a good heart to read this with patience.The above onboarding screen in question uses the following...
View ArticleHow to not use any in React-Native Fast-Image Component TypeScript
I have a component that will show an Image, It will receive an url and style.interface FastImageProps { styleComponent: StyleProp<ImageStyle> | StyleProp<ImageStyle>[]; url: string;}export...
View ArticleMake screen go underneath tabs React Native
I'm trying to make a collapsible tab bar and I think i'm almost there. The only thing that's in my way is the empty space on top of the ScrollView (see GIF). I'm using React Navigation and the...
View ArticleReact Navigation TypeScript: Argument of type ... is not assignable to...
I'm building a React Native app and I'm handling my navigation using React Navigation V2.I literally copy pasted the following code from the documentation:const MainTabs = createBottomTabNavigator( {...
View ArticlePreview uploaded document in expo react native
i have a problem with viewing the uploaded file. any one have idea?enter image description heresee picture please, i use react native with expo and i code a button that enable to upload...
View ArticleHow Can I Filter Array of object in same property?
I have a Product Options "Color, Size, etc" And as we know user can select one thing from the option "selected just red color from Colors", in this time I ad the selected one the separate Array "All...
View ArticleWatermelondb with TypeScript
I am building a React App and I wish to use Watermelondb for Offline Storage, but I don`t know how to use it with TypeScript. I have created the database and my Course and Lesson model files from...
View ArticleNeed help in scrolling
I want to scroll in a flatlist but the issue here is the scroll needs to be an infinity scroll, as in the scroll action needs to be executed till the element is found. I tried scroll using while()...
View Article