React Native Elements problem[Solved]
In simple words, can somebody give me a link to working react native elements example in expo snack ? Because all of the examples are causing the same error which is expo is being unable to resolve react-native-elements even when it's added in package.json or installed globally(on local device)
6/29/2020 9:15:54 PMWARLORD
10 AnswersNew Answer
WARLORD the official example is working https://expo.io/@monte9/react-native-elements-app Tho the code is inaccessible in expo, after a little bit of researching i found the github repo with the code https://github.com/react-native-elements/react-native-elements-app
Burey btw the test that i'm talking about was local because for some reason snack keeps saying it's unable to resolve the module(even when I saved and refresh the project)
WARLORD good to hear it been resolved You can use this site to find what icons each library has https://oblador.github.io/react-native-vector-icons/
There is this course on Udemy which teaches you step by step. It was free back then. https://www.sololearn.com/post/259464/?ref=app https://code.sololearn.com/WKKkpq0efxai/?ref=app
Gordon I asked simply for a working snack of react native elements library not a react native course
You learn about installation and settings in a course.
Gordon I appreciate that trying to help but my problem that I literally didn't find any expo snack that works with react native elements, all of the snacks are producing the same error which is expo is being unable to resolve module react native elements even when trying to install any of the following two versions in my project or globally it doesn't work and produces the same error: "react-native-elements": " ^2.0.0" (from github) Or "react-native-elements":" 2.0.3" (the most recent version)
Burey I found a solution which is to import FontAwesome5 instead of Icon(for some reason icon doesn't show font awesome :/) Thanks for helping anyway
Burey I tried to copy the dependency from this repo but the icon component doesn't work and shows "?" Instead of a simple icon like "eye"
WARLORD on a side note Expo is nice and all, especially when the project is small and doesn't require many features. But it is very limiting when you want to use libraries written in native code. If the library hasn't been integrated to Expo you simply wouldn't be able to use it. Also ejecting leaves you with some Expo dependencies and issues that may be hard to fix. I am currently working on a large project that been started with Expo and been recently ejected to the bare workflow and very so often i am finding myself fighting with some of the left over dependencies of Expo...