I'm getting an issue with Ionic icon. I am using Ionic 4 and Angular 8, trying to add QR code icon, without luck.
I am using Ionic doc: https://ionicons.com/
<ion-menu-toggle auto-hide="false">
<ion-item (click)="scanBarcode()">
<ion-icon name="qr-code-outline" slot="start"></ion-icon>
<ion-label>
Scan QR
</ion-label>
</ion-item>
</ion-menu-toggle>
You are using Ionic v4, but the Latest Version is Ionic v5. With this Major Upgrade the Icons changed also. When you are searching the Documentation about the ionic v4 Icons: https://ionicons.com/v4/
Related
I am using free version of fontawesome 5 from #expo/vector-icons. How can I include(use) my downloaded font awesome pro icons in expo project. Shall I create custom fonts using https://docs.expo.io/guides/icons/#createiconset or Is there any way to upgrade to fontawesome pro version?
I am running into the same issue. There is an open issue regarding this on github. It seems that pro icons are not officially supported.
https://github.com/expo/vector-icons/issues/91
This is a fresh React Native app using React Native Paper. I followed the instructions at https://callstack.github.io/react-native-paper/getting-started.html and installed react-native-paper and react-native-vector-icons.
For some reason, none of the icons are showing in the app -- see below:
For example, I have a Searchbar at the top of this screen with the following code. As far as I can see, I don't even have to specify an icon there. It should automatically display a magnifying glass but no icon is showing.
<Searchbar placeholder="New to do item..." />
Any idea why and how to fix it?
Stop your application. Then go to project directory > open cmd > run npx react-native link react-native-vector-icons
cmd will show you linking is successful
Now run your app again
Just follow the installation steps as described here: https://github.com/oblador/react-native-vector-icons#android
React-native-paper uses MaterialCommunityIcons so remember to add it in the iconFontNames list in the steps above.
I've got some questions regarding React Native Web. I haven't really wrapped my head around how it works so I'm hoping to get some answers.
Exactly, what happens when we "alias" the React Native to Web?
When working with Expo, why isn't some packages available? For
example, the LinearGradient get's an error saying it can't be found.
I want to use Netlify Identity Widget, but that renders in HTML. How
do I use that with React Native Web?
So in general, how do I develop in React Native Web? I need to know how to port npm packages so I can work with them.
Super thankful for any advice!
Exactly, what happens when we "alias" the React Native to Web?
It means the library react-native-web will convert the react-native components into HTML/CSS tags.
Here an example:
<View>
<Text style={{color: 'red'}}>I'm an awesome text</Text>
</View>
Will become into when rendered on browser:
<div>
<span style="color: red">I'm an awesome text</span>
</div>
When working with Expo, why isn't some packages available? For example, the LinearGradient get's an error saying it can't be found.
Expo offers a very simple way to start developing React Native apps. But it's a closed box where you cannot add community native packages, only the native packages that comes with Expo. There is an exception, the js-only packages, like: https://github.com/crazycodeboy/react-native-check-box
For the native packages, you need to link them in the native side of your app and compile it. To achieve this I suggest you to start in the native development, you can found the path here: https://facebook.github.io/react-native/docs/getting-started#the-react-native-cli
I want to use Netlify Identity Widget, but that renders in HTML. How do I use that with React Native Web?
You can use any package/widget/library that renders HTML, because you will run it on browsers. You can start using it just typing yarn add netlify-identity-widget
or npm install netlify-identity-widget --save into your react-native-web root folder.
Hope I helped!
I am new to react native with UWP, I installed react native windows and initialized a new project. The project contains the IOS, Android and windows folder. In the windows folder, it has a visual studio solution. When I run the App it opened me to a welcome screen. Now I want to create 2 page in UWP and navigate from one to another. I searched for it but I couldn't find any docs or tutorials. If someone knows where to find a tutorial on this plz help me.
I have tried to Develop the react-native app for Android,iOS and windows UWP also. I tried with react-navigation versions 3x and 4x. But its not working, because of react-native-gesture-handler. So i downgrade my react-navigation version as 2.18.3 in react-native version 0.59.10. Now its working fine for me. For react-navigation below 3x no need react-native-gesture-handler.
https://facebook.github.io/react-native/docs/navigation
You can use the same navigation provided by React-Native official docs. Or else you can use react-navigation package.
I am following this link to customize my react-native components
Theming NativeBase Apps
but I am unable to find light.js and proceed further
Run the following command after installing native-base in your root app directory.
node node_modules/native-base/ejectTheme.js
https://docs.nativebase.io/Customize.html#Customize
set version to 2.2.0 and it will show you the steps to theming nativeBase App.