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

Typescript Decorator and Babel: ColumnTypeUndefinedError: Column type for...

Despite having babel-plugin-transform-typescript-metadata installed I have this error below:ColumnTypeUndefinedError: Column type for Exercise#name is not defined and cannot be guessed. Make sure you...

View Article


Export namespace should be first transformed by...

I have created a new react-native project with the typescript template and I'm getting this error after installing the stack navigation libraries:error:...

View Article


React Native, accept native component properties as props and have custom...

I have this AppText component where I want to use a Props interface while having the ability to accept other props fields that I can consume with a spread operator. Here is my attempt...

View Article

How to do navigation.setOptions in typescript

I'm setting up stack navigation using typescript and it's my first time working with typescript. I have a screen Login.tsx in which I want to customize the navigation bar.import { useNavigation } from...

View Article

It is possible to generate documentation to React Native project with .tsx...

My code have comments and I would like to generate documentation to all classess, methods and field like in javadoc.I've tested typedoc, esdoc and other libraries but all failed with .tsx files.Did you...

View Article


react-native-svg-transformer unable to resolve module issue (Expo + TS)

I know what you're thinking: "Look it up! There are docs!"The thing is, I have tried everything and exhausted all options. The strange part is the fact that I have done this before with no issues in...

View Article

Image may be NSFW.
Clik here to view.

React Native - expo/vector-icons typescript type definition for icon name

I'm trying to find out the type definitions for the icon name of expo/vector-icons, since I am intending to use it for a component props.I am import expo/vector-icons like and and defining interface...

View Article

Typeorm: No metadata for "Exercise" was found

I have gotten this error after running connect() from dbHandler.tsx. I suppose this github issue post should help me in this but I am confused in what they are writing. This may be the same error as my...

View Article


How to properly mock a react component class that has components in its...

I need to mock a component on jest, the component structure is like this:export class ClassName extends React.Component<ClassNameProps> { static PropOne; static PropTwo; static MethodOne(param:...

View Article


Image may be NSFW.
Clik here to view.

react-native-dotenv Unable to resolve module @env

I'm setting up this lib for TypeScript like heremy env:API_KEY=someKey..i'm setting up type/env.d.ts:declare module '@env' { export const API_KEY: string;}my babel.config.ts: module.exports = function...

View Article

Image may be NSFW.
Clik here to view.

unable to create react app with typescript

I'm trying to create new react new app with typescript with the commandnpx react-native init myApp --version 0.68.2 --template react-native-template-typescriptand I'm getting an errorerror An...

View Article

React Native - cannot connect to Metro on API 31/32 (Android 12) either on...

Cleartext is enabled in the manifest.I have done adb reverse tcp:8081 tcp:8081 command.The same app readily works on an API 28 emulator.I get the message Could not connect to development server.Is...

View Article

Dropdown but per index choice in React Native

so i want to make that each of the flatlist dropdown open per index, so when you choose 1 section it will only open that section so the other doesn't get open, but sadly i still can not find the...

View Article


React Native TextInput Not trigger lodash debounce on android devices. IOS...

I have an issue with React Native Textinput with lodash debounce. Here is my code,const SearchBar: React.FC<SearchBarComponentType> = ({onHandleSearch}) => { const theme =...

View Article

This expression is not callable using navigation in React Native TS

I'm getting this error when trying to define type Nav for navigation function:const InfoLink = ({ componentName, title,}: { componentName: string; title: string;}) => { const navigation =...

View Article


Typeorm: find() returns undefined results

I am not sure why doesconsole.log(exercise) in my method extractData() returns undefined? I think I have already did the entity classes and migration files.Snippet of App.tsxconst AppDataSource = new...

View Article

Typescript throwing an error regarding the absolute imports if the file is...

I have the following tsconfig.json file:{"extends": "../../tsconfig.json","compilerOptions": {"esModuleInterop": true,"jsx": "react-native","baseUrl": ".","paths": {"@/*": ["./src/*"] } },"include":...

View Article


How to set the initial navigation theme by route params from outside of the...

I am trying to set the initial navigation theme based on the current route params. But I have to render the NavigationContainer to access the ref to gain information aboute the route, which leads to a...

View Article

Image may be NSFW.
Clik here to view.

'Stack.Navigator' cannot be used as a JSX component

There is a type issue using react navigation, when use Stack.Navigation or Stack.Group from createNativeStackNavigatorThe issue saids that the types dont match with JSX.element at the end of 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
Browsing all 6287 articles
Browse latest View live


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