WebStorm not suggesting the icon name in TypeScript
I am trying to find the suggestion in icon names when using the Ionicons in React Native.If I ask about suggestion, WebStorm shows "No Suggestions" like this.But If I mis-type the icon name, WebStorm...
View ArticleReact Native Align button on top of keyboard for all devices
So I need to align a button Which is not at bottom om screen by design should be at middle of screen but it should align to be on top of the keyboard for all devices. If you check this screenshot : for...
View ArticleReact Native stylesheet not updating on value change
I have a Theme Context that exposes all the colors in my app, in light and dark mode. I just set this up and it works fine, but the styles don't get updated, even though the actual values are changing....
View ArticleReact native state is not updating UI elements
im trying to fill up my view with elements. I am trying to use SetEvents to make the UI update, however it is not working.My getEventsInCity returns standardResponse, .data of this is of type...
View ArticleHow to determine get number of running threads for Expo Go app using...
I’m on SDK 40. Periodically I notice Expo Go hangs when doing an await for a custom method. The start of the custom method is console.log and it isn’t even appearing.In SDK 42, (I presume 41 as well)...
View ArticleImagePicker in React-Native
I am getting this error in react-native-image-pickerTypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[8], "react-native-image-picker").ImagePicker.showImagePicker')Note:...
View ArticleWhen using SQLite in Expo for iOS/Android with concurrent promises, should we...
Since SQLite does not allow nested transactions. I was wondering does it make sense to open up a new connection for every transaction so I can have concurrent transactions in Expo?Sounds a bit...
View ArticleProperty 'storage' does not exist for firebase.js
I am currently trying to connect Firebase to React Native and am following this guide : https://blog.jscrambler.com/create-a-react-native-image-recognition-app-with-google-vision-api/The guide has me...
View ArticleHow to fix esLint " parserOptions.project has been set for...
I get that wired error message on each file on my project:Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.The file does not match your project config:...
View ArticleFailed building JavaScript bundle. node_modules\typescript\lib\typescript.js:...
I have spent a couple of days on this issue and I can not figure out where the issues, I have increased my max-old-space size to 12gb. I still have the same issue.can anyone help, please!?
View ArticleHow to connect forms in reactjs
im a student trying to learn react , type script .And im having some problems in forms.So here is how my site is looking : !(https://ibb.co/QCkkVY9)So i have created a crud that has , name , username ,...
View ArticleNavigation with Typescript and createMaterialBottomTabNavigator
I'm trying to use the navigation in another component.I have this in my app.tsx, as an exmaple of how the tabbed navigation looks.export default class App extends Component<Props> {render()...
View Articledisplaying only one entry with useQuery
I'm trying to just display one value from a query and I'm wondering why the first snippet of code does not display the name while the other one doesthis one does not work:const EXCHANGE_RATES = gql`...
View ArticleHow to declare types for optional fields in realm objects in typescript?
Let's say I have the following definition in the schema:export const ItemSchema = { name: 'item', properties: { _id: 'objectId', sku: 'string?', name: 'string', updateDatetime: 'date',...
View ArticleHow to convert video to image in react native
I want to record a 10-second video in react native and cut the video into pictures with 0.1 second intervals. Can react-native-ffmpeg be implemented, or other solutions will work, thanks
View ArticleProperty not being added to object
I have a object which has an array inside it. Each array has multiple objects. So using the .map function I am looping over the array inside the object. Each array item has a click function where I...
View ArticleHow to move data from screen to screen with nested navigation?
I know theres some questions about this already but none of them have helped. In my case I have a couple nested navigations which I think might be the problme. Im getting a "undefined is not an object...
View ArticleAsyncStorage doesnt get newest item
So Im trying to save an address that I get with async storage and then reading it on another page. The problem is that every time i save a new address by overiding the last address, the newest one...
View ArticleHow can I declare an object property in TypeScript?
This code snippet gives me this error:Type 'JustifyContent | undefined' is not assignable to type '"space-around" | "space-between" | "space-evenly" | "center" | "flex-end" | "flex-start" |...
View Article['type aliases' can only be used in a .ts file]
I use command react-native init "name project" then open vscode appear to have error message code. (image)
View Article