‘Stack.Navigator’ cannot be used as a JSX component

You will need to fix the version for @types/react package because many react libraries have dependency set as @types/react : “*”, which will take the latest version of the package. (I suppose they just released version 18) To do that you can add this in your package.json if you use yarn “resolutions”: { “@types/react”: “17.0.43” … Read more

NativeModule: AsyncStorage is null, with @RNC/AsyncStorage

This error can be rectified by linking the module like mentioned above but linking does not work if your app is Expo Managed (created via expo-cli). Assuming your app is Expo managed, instead of using the AsyncStorage from Facebook RN Documentation: import AsyncStorage from ‘@react-native-community/async-storage’; Do: import { AsyncStorage } from ‘react-native’; Check documentation here: … Read more

Calling locally hosted server from Expo App

You can get the IP address at runtime using the Expo manifest: import Constants from “expo-constants”; const { manifest } = Constants; const api = (typeof manifest.packagerOpts === `object`) && manifest.packagerOpts.dev ? manifest.debuggerHost.split(`:`).shift().concat(`:3000`) : `api.example.com`; This will set api constant to the address of your local development machine in development mode and to whatever address … Read more

expo + react-native: There was a problem sending log messages

This is due to the fact that the React native console logger CANNOT parse the JSON object coming from Axios. I can guarantee that anyone who is having this error is not PARSING the JSON object before logging it to the console. CODE THAT WILL GIVE THIS ERROR: Axios.post(URL).then(function (response) { console.log(“POST RESPONSE: “+response); } … Read more

React Native: Generate .apk and .ipa using Expo

make sure in app.json { “expo”: { “name”: “your app name”, “description”: “your app desc”, …., “ios”: { “supportsTablet”: true }, “android”: { “package”: “com.yourcompany.yourappname” } } } then run expo build:android or expo ba after that run expo build:status you’ll find, something like this, the Apk’s is hosted on amazon aws [exp] Android: [exp] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)