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

Issues in arranging layers in react native when using modal sheet below

I want to layer it in my feed page because when I use bottom sheet modal, but when showing the bottom sheet page, the right icon is shown on top of the bottom sheet page too.I want the icon on the...

View Article


How to get the legacy paths in react-native-blob-util

I've been using rn-fetch-blob for my project so far but had some issues with it and would like to replace it with react-native-blob-util.however, the latter implements media storage witch (to my...

View Article


I have an error building my TSX-Expo-React Native application: Could not...

When I build my application with eas build with expo, everything is correct, only at the end this error appears. I have read a lot and I have not been able to solve it. If someone can guide me, that...

View Article

React Native Typescript, Type 'string' is not assignable to type '"200" |...

I am passing a theme into my style.ts:badgeText: { fontWeight: theme.fonts.FONT_WEIGHT_HEAVY,},Constants:export default { FONT_SIZE_EXTRA_SMALL: 8, FONT_SIZE_VERY_SMALL: 11, FONT_SIZE_SMALL: 14,...

View Article

Can I use react-native version 0.71 without typescript?

I do not understand and wonder that, will react-native no longer be usable without typscript after version 0.71?

View Article


How to extract array from object in Javascript-react native

I got below object from expo-image-picker-multiple, I want to get an array that doesn't include the "u, V ,W", from below since they are giving me bugs, I only want to extract the objects as array and...

View Article

Typescript - App.tsx is not under rootDir

I have just installed typescript for my react-native project and when I run the project, the following error message is displayed in the packager:error: bundling failed: Error:...

View Article

SyntaxError: Unexpected token '

I have implemented detox for my react native app.I created dashboard.test.tsx to run my first tests. Below you can see a sample test I wrote in that file.import { device } from 'detox';import {...

View Article


React native - state does not get updated inside renderItem function in...

As explained stateItem throws an error, and when I console.log stateItem after I set the state it comes out as null. Can someone please tell me why this happens? The code is below:const [stateItem,...

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

SwipeListView - When pressing one item from list shows the infomation of the...

<SwipeListView data={list} listKey={'list'} keyExtractor={list=> list.id} closeOnScroll={true} closeOnRowBeginSwipe={true} renderItem={({ item }) =>...

View Article

How to fix i18next::translator: missingKey en error in React native?

I am creating a react native application for Android. I want to do language translation using i18next. I get the following error when I deploy my app LOG i18next::translator: missingKey en translation...

View Article

Error in install pods when I try to submit by eas to a react native expo...

I have tried changing the firebase config and updating the dependencies including expo and firebase.The console logs in this step are as follows (The error occurs in the last logs):Using Expo...

View Article


ConnectedDevice returns undefined

I'm trying to use the connectedDevice that has been initialised in a file which has the connecToDevice function, however when I try calling the connectedDevice in another file it's returned undefined....

View Article

Image may be NSFW.
Clik here to view.

React Native: All RN components are throwing TS errors

TS2786: 'SafeAreaView' cannot be used as a JSX component.   Its instance type 'SafeAreaView' is not a valid JSX element.Is just one example of a react native component getting this TS error in my code,...

View Article


PouchDB sync Error: {"name":"Error","message":"Can't find variable: btoa"}

Hello I have been implementing an off-line database with PouchDB in React Native 0.68.2, although when saving and retrieving the data it works correctly, but when synchronizing it throws this...

View Article

Platform specific import component in react native with typescript

I am using react native with typescript. I have a component with the following structurecomponent - component.ios.tsx - component.android.tsxNow I want to import the component. So, I am doing...

View Article


How to declare an import name the same as declared in another...

I have two files, routes.js and package.tsI want to declare an import name in package.ts by using variable declared in routes.jsThis is routes.js//object for the whole app routesexport default...

View Article

Get a type as enum values of object and pass the readonly object as props -...

I have the following data:const ActionData = [ { label: 'Edit', icon: 'pen', key: 'edit' }, { label: 'Skip', icon: 'forward', key: 'skip' }, { label: 'Stop', icon: 'stop-circle', key: 'stop' },];which...

View Article

@config-plugins/react-native-ble-plx dependancy issue

I'm trying to installing this package to allow me to use react-native-ble-plx on expo app, yet I face dependency issue, can any one help please:npx expo install› Installing using npm> npm installnpm...

View Article
Browsing all 6291 articles
Browse latest View live


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