how to put .obj file to android folder using expo?
I'm working on to make application with react-native, expo.I'm using react-native-gl-model-view library to use 3d model.It needs to be file in android/app/main/assets folder.I want to how to put .obj...
View ArticleWhat is type for file upload Event in react typescript?
I want to add type in code but I don't know about what type can I useconst handleFileChange = (e: any>) => {setCollect({ ...collect, [e.target.name]: e.target.files[0], });};I won't use any, how...
View ArticleUnexpected token '?' no stack in React Native
I'm getting unexpected token '?' error. But, on debug mode, the error disappears.
View ArticleReact Navigation: navigating to a nested Stack requires navigating to the...
Using @react-navigation (6.x) in a React Native app, I've decided to fully annotate our navigation stacks. Everything pretty much works, despite how convoluted RN makes it. The only notable exception...
View ArticleTrying to apply correct types for createDataContext function in React using...
I'm trying to apply generic types for createDataContext helper function in React, I already spent some time, but have had no luck doing it. I'm trying to use a typescript as most as I can, but probably...
View ArticleDisplay a Drawer Stack inside Stack Navigator now showing items after click
I am trying to display Drawer Stack inside Stack Navigation after proceeding from Login but my Drawer stack hamburger menu is showing up but Drawer stack is not popping out the drawer nor display...
View ArticleTS2786 TypeScript not reconizing UI-Kitten components
Error message on IDE:TS2786: 'ApplicationProvider' cannot be used as a JSX component.Its instance type 'ApplicationProvider' is not a valid JSX element. The types returned by 'render()' are...
View ArticleWhen creating a reusable component in React, how do I pass all other props to...
I'm creating some custom components for my application and they essentially have some base styling done to them for light/dark modes. My goal is to be able to use those components with all their props...
View ArticleHow to focus TextInput on button press in React Native
I have a TextInput component, which is only editable on component mount. It should become editable and auto focused, when a button is pressed. As I understood it correctly, the autoFocus property only...
View ArticleReact Native - How to change the style and properties to a pressed row inside...
I would like to change the style when the button is pressed, but just change the pressed one, not all the row list. How can achieve this in React-native. This is what I have tried.//hooks const...
View ArticlePromise is not resolving in useEffect hook
I am getting response from api which i need to render.following is the sample response (relevant fields only): [ { ...other fields,"latitude": "33.5682166","longitude": "73.207334", }, {...
View ArticleTypescript error on component IntrinsicAttributes
Im getting this error, "The type '{ data: dataProp[]; }' cannot be assigned to type 'IntrinsicAttributes & dataProp'.A property 'data' does not exist on type 'IntrinsicAttributes &...
View ArticleHow can add predicative for keyboard in react-native-expo?
I want create TextInput when forced show keyboard with predicative.I want add like below imagepredicativeI work with react-native-expo
View Articlehow do I fix Expected 0 arguments, but got 1 in createDrawerNavigator
Please help me to fix error with drawer navigatorhere is the code of drawer.tsxerror: Expected 0 arguments, but got 1. in createDrawerNavigator functionimport { createDrawerNavigator } from...
View ArticleReact 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. But I'm getting this error:Type '{...
View ArticleThe image source (either a remote URL or a local file resource)
hello I am new to react native I am facing an issue while I am passing imageURL as a prop I have an onboarding component in which I have an image tag I want to pass the image here as a prop but I am...
View ArticleTypeError: undefined is not an object (evaluating...
I am trying to implement chat app using react-native below is my dependencies"dependencies": {"@react-native-async-storage/async-storage": "~1.17.3","@react-native-community/masked-view":...
View ArticleTypescript + React Native - "Property 'x' does not exist on type...
I'm trying to create an abstraction for a component by passing a component as a prop. In short, I want to be able to pass a TriggerComponent that can be either a View, Button, or Whatever other...
View Articlehow to use two different route name with params for the same used component...
let's suppose I have the typing like the followingexport type NavProp< ParamList extends ParamListBase, RouteName extends keyof ParamList = string> = { nav:...
View ArticleReact Native Swiper ref element scrollTo does not work on first render
I am implementing an Introduction feature in my app. Where the screens show after splash screen. I used react-native-swiper component for guiding the user to step by step tutorial in my app.Here is my...
View Article