how to use LaunchNavigator in ionic 5? - ionic4

Currently im migrating my app from ionic 3 to ionic 5 when i import LaunchNavigator from #ionic-native/launch-navigator it is not showing any error, while compiling the application im getting error like
private launchNavigator: LaunchNavigator
[ng] An argument for 'launchNavigator' was not provided.
But no error is showing in code.

Related

How do I resolve, " 'main' has not been registered "

I have been continuously getting the error below. I have a Mac and have been trying to create a react native app with React CLI, but I have been continuously running into errors. My app is building but then when I open it I get the following error. I am not sure what to do because my Metro is running from the right folder. All the other solutions I found online are not working for me or they are outdated and are not in my code.
image of error

react-native-fs not working on react-native version 0.69

I am using react-native version 0.69 and I want to read a file stored in assets in my react native project.
using following syntax in App.js
import fs from 'react-native-fs';
I have installed 'react-native-fs' and followed all the links I could find on the internet but I am still getting below error while running the app.
ERROR TypeError: null is not an object (evaluating 'RNFSManager.RNFSFileTypeRegular')
ERROR Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current
project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
I tried to run react-native link react-nativs-fs but link support has been removed in react-native >= 60 as mentioned in official docs,
I am unable to get this to work, any help would be appreciated. I have seen similar issues on the stackoverflow but none has given the answer for react native >=0.60 versions
Also I am using expo to create the app.
my OS is Windows 10 64 bit.
react-native-fs is not supported with Expo but it is only supported by Pure React Native.
Expo has a package that offers filesystem support:
expo-file-system

I have created a blank project in react native and now I am trying to run it on my phone but it is throwing up this error

I have not made any changes to the code until now. I am just trying to run the project on my mobile but it is throwing this error.

Unable to resolve module 'react-devtools-core' from 'node-modules/react-native/Libraries/Core/Devtools/setupDevtools.js'

Trying to debug react native iOS application but when I am running the app from xcode, getting this error.
'react-devtools-core' from 'node-modules/react-native/Libraries/Core/Devtools/setupDevtools.js'

React-native syntax error unexpected token import when trying to init a new app

since the update of React-native , when i try to create a new project with the react-native-cli or try to do a command to run a project that i upgrade i get this error. See on the image, it is an error that says import type CommandT from './commands': and i get an error unexpected token import,i want to know if there is a way to change that? even when i try the app with the old version of React-native , it doesn't load the app in the metro bundle
Me too got the same issue after updating react native to 0.56.00. I used the command
react-native init --version="0.55.0"
to create a project. Try this.