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

getTheme() native base Type

I'm using a custom Native Base style theme as described in this link.https://docs.nativebase.io/Customize.html#theaming-nb-headrefImports:import material from...

View Article


How to animate expanding / collapsing a text preview in react native with...

I'm creating a text component that I want to be 2 lines by default, and if the user taps on it, it will expand to the full length, and if the user taps on it again, it will collapse back to 2 lines.So...

View Article


Image may be NSFW.
Clik here to view.

RefferenceError: Can't find variable React

I'm not entirely sure why I am getting this error, as react is present in node_modules and imported in referenced fileReferred App.js file is this one"use strict";var __importDefault = (this &&...

View Article

TypeError: seamless immutable _1.default is not a function - React native...

I am trying jest unit testing for typescript based react native project.Now I am stuck on one issue when do npm test. Error mentioned below● Test suite failed to runTypeError:...

View Article

Image may be NSFW.
Clik here to view.

React Navigation Typescript namespace not found

When I'm trying to create any navigator( tab/ stack/ drawer) I get this typescript error: Cannot find namespace 'Tab' even when it's defined in the file itself.What's the problem and what's the...

View Article


The "injectBabelPlugin" helper has been deprecated as of v2.0. You can use...

I am trying to customize my imports using babel. I am following this link:https://medium.com/@leonardobrunolima/react-tips-working-with-relative-path-using-create-react-app-fe55c5f97a21This is my...

View Article

Unknown Option error from Babel in React-Native app

I ma building a react-native app with typescript in order to learn react native. Once I run the app with expo start and try to run on emulator I get this error:index.js: [BABEL] ......../index.js:...

View Article

How to use AWS Amplify in React Native with Typescript Project?

I'm trying to add Amplify Authentication in my react native project which uses typescript.There is a package given in amplify documentation 'aws-amplify-react-native' which is used as a middleware to...

View Article


invalid date format TypeScript

I am passing in time values departureTime such as '12:00' here. Then I try to convert it into a date and perform a subtraction. However, the result of timeOfDeparture and then time till departure is...

View Article


Error: react-redux module can't resolve module redux

I'm using React Native with the typescript template: npx react-native init someapp --template react-native-template-typescriptWhenever I try to: import {Provider} from 'react-redux'; in index.js or...

View Article

react-redux can't find module redux

I'm using React Native with the typescript template: npx react-native init someapp --template react-native-template-typescriptWhenever I try to: import {Provider} from 'react-redux'; in index.js or...

View Article

Rollup is not adding react-native components to bundle imports

I try to build a react-native/-web library to share components between two projects,but rollup is not recognising the react-native components when they are used in a component and response with this...

View Article

Why is XCode Compiling very slow after adding typescript?

I finally switched to typescript for my react native project this week. I find it beautiful and awesome. However, when I go to compile my project in Xcode, it is taking forever!(that is a metaphorical...

View Article


Image may be NSFW.
Clik here to view.

place text next to thumbnail instead of center

Currently, my username text appears in the center of the view. I want to change it such that it appears on the exact right of the thumbnail. If I remove the alignItems: 'center', from the item, it...

View Article

How to fix a TypeScript false positive warning for "No overload matches this...

I have a React Native component that will render an Animated.View with an animated style for Android, otherwise it renders a View without this style.My code is:interface ButtonProps { containerStyle?:...

View Article


align placeHolder text in vertical center

The placeholder and typed text in my input field seems to be a bit lower than the center. Is there any way to vertically align it in the center? I have already tried alignItems, justifyContent and...

View Article

underline the clicked text element

I have a list of text elements that I want to underline when clicked. If I add the text decoration to the tabText then obviously it is applied to all items. How can I make sure that the when I click on...

View Article


Image may be NSFW.
Clik here to view.

Typescript error JSX element type 'View' is not a constructor function for...

The program itself runs fine, but Typescript is underlining a lot of items in red in my return function for my components. Specifically anything coming out of my react-native import.Anything like View,...

View Article

React Native still runs with incorrectly defined types (TypeScript)

I am trying to convert React Native project to TypeScript-based project.So far, I converted .jsx files to .tsx files, and when I run yarn tsc, it throws tons of error.However, my npx react-native...

View Article

React-native-reanimated not working in web

Currently i`m copied example from this posthttps://github.com/software-mansion/react-native-reanimated/issues/537When trying in web Reanimated not working and RN Animated working well.There is no...

View Article
Browsing all 6214 articles
Browse latest View live


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