The error encountered during the Complete React Native Bootcamp (with Hooks) course.

close up photo of programming of codes開発備忘録
Photo by luis gomes on Pexels.com

I recently took this course, so I will update it with any errors encountered during the course and their respective solutions as needed

Section7

Using Eslint

It’s likely that this repository contains instructions for installing ESLint as demonstrated in the course

https://github.com/facebook/react-native/tree/main/packages/eslint-config-react-native

when I installed ESLint as described and run the ‘yarn lint’ command, I encountered the following error

TypeError: prettier.resolveConfig.sync is not a function

Solution: type this command

yarn add -D eslint-plugin-prettier@5.0.0

Solution SearchBar

When importing ‘react-native-paper’ and running ‘yarn ios’ to start the simulator, an error occurs

Solution:You need to install ‘react-native-safe-area-context’ alongside ‘react-native-paper’ using the yarn command.

type this command

yarn add react-native-safe-area-context

Solution Tab Bar Icons

Probably, teacher used this site.

@expo/vector-icons directory

However, Usage is different from the course Usage.

we have to look for icons in this site.

Ionicons: The premium icon pack for Ionic Framework
Ionicons is an open-sourced and MIT licensed icon pack.

so, you can change icon in the same way.

コメント

タイトルとURLをコピーしました