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

React Native - Text Input - Long text input, cursor doesn't go at the...

I have this simple Text Input but the problem is that on Android Devices, when the user has written a long text, the cursor doesn't go automatically in the beginning of the field but it stays in the...

View Article


How to filter FlatList Data by selecting multiple categories from array in...

UI ImageHere, I want to filter Flatlist data as per top categories and button should be multi-selected.FlatList data is HotelData array and above categories is also one array that is used inside...

View Article


Text cannot be used as a jsx component it instance type 'Text' is not a valid...

Receiving following error:Text cannot be used as a jsx component it instance type 'Text' is not a valid JSX elementMy file is .tsx as I in a minute need it to be typescript as I will be needing...

View Article

expo: Cannot find find FileSystem properties and Asset while trying to import...

I am new to react native.I was trying to use expo-sqlite and following their guide under "Importing an existing database".I have did 'expo install expo-file-system expo-asset`I have create a...

View Article

Reveal Timestamp React Native (iMessage Clone)

I was wondering how I would go about dragging/sliding left to reveal the timestamp on react native. I am using a flatlist in react-native and I have the timestamp data but I am unsure of how to render...

View Article


Fetch large amount of data from API in React Native

I recently started to get play around with React Native a little bit. One of the questions that came to my mind was how to properly fetch large amounts of data from an API. I have a MySQL database with...

View Article

How can I get the value of checked (checkbox) and autocomplete a textInput in...

could you help me?, I'm developing with react native and typescript, I need to do this:I have a checkBox that tells the user to check if his name is the same as his credit card, if he clicks the...

View Article

Component ref type in React Native with Typescript

I'm just starting to use Typescript in React Native and need help with refs and their types.Please, see my code below:type MyComponentProps = { ref?: React.RefObject<typeof...

View Article


UseMemo cant read value from zod validation?

Need help,i used zod to validate my data and try to used function useMemo when i cursor to the value as in image the value can read from zod validation but when i put the value the error come out as...

View Article


How to display div based on list onclick

I have list of 3 filters* (ALL, UPCOMING AND SOLDOUT) and I need to display only one div for one list onclick (ListAllItems() to display only itemList div, but hide ListUpcomingItems div, and onClick...

View Article

Why Jotai always keeps the previous satete in React-Native?

I'm developing an android application with React-Native and i use Jotai to manage states.There's a problem with the Jotai state updates.When i try to update the state, it always returns the previous...

View Article

React Native Elements Cannot Be Used As A JSX Component

Hello everyone I am getting this error in my RN project :"'View' cannot be used as a JSX component.Its instance type 'View' is not a valid JSX element"This was a project that I cloned I didn't created...

View Article

Fontawesome icons not rendering from Expo typescript navigation template

I am very new to React Native, and I am using Expo. When I ran expo init I chose the third template which shows examples of navigations that is also integrated within Typescript. However, when I ran...

View Article


PhaseScriptExecution [CP-User]\ Generate\ Specs...

I'm on a big problem in my actual project. Everytime when I try to run iOS simulator this error appear in my log. I tried chance Xcode version, delete all pods, change zshrc file, but nothing...

View Article

Passing function to throw Stack.Screen in react navigation

I'm attempting to pass a useState function between screens. I receive this function on the App.tsx and I passed it to the Navigator handler, to I can pass the set parameter into the signInScreen.This...

View Article


How can I output eslint errors to Metro bundler's console?

I searched dozens and dozens of tutorials and threads but didn't find info about how can I do it.I need something like eslint-webpack-plugin solution, like middleware or something. Something that will...

View Article

How to fix TypeError: navigation.setOptions is not a function

I'm trying to implement react native test library with jest to my app.For now I have a problem with the navigation on my component.When I'm running the test, I've got an error :TypeError:...

View Article


How to create a textInput for the expiration date of a credit card with this...

Could someone help me to create a textInput for the expiration date of a credit card with this format: MM/YYI'm programming with react native and typescript, I installed react-native-masked-text...

View Article

BottomBar View take space from screen even it is not visible on IOS

we have a NavigationContainer that contain both the pages and the bottom bar, the bottom bar is visible only on some page (we control that using hook that listen to screenListeners when get changed),...

View Article

Listening to async upload task to handle loading state

I'm trying to set a loading state according to the state of sending. If the image is sent I will simply insert a loading indicator. Although whenever the task is running, I'm receiving a done (.then())...

View Article
Browsing all 6287 articles
Browse latest View live


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