React Native Material Avatar Text Example
When “React Native Material Avatar Text Example” moves through design, development and browser testing, the related planning guide can clarify hand-offs and time spent on revisions while leaving code quality, accessibility and released behaviour as the real measures of success.
For API changes, browser support and current usage patterns, compare the snippet with the React Native project before adopting it in production.
Hi Guys,
In this blog, I will explain you how to create material ui avatar text in react native. You can easily create material ui avatar text in react native. First i will import stylesheet namespace from react-native-paper, after I will make material ui avatar text using in react native.
Here, I will give you full example for simply display material ui avatar text using react native as bellow.
Step 1 - Create project
In the first step Run the following command for create project.
expo init MaterialUIavatarText
Step 2 - Install Package
In the step,I will install npm i react-native-paper package .
npm i react-native-paper
Step 3 - App.js
In this step, You will open App.js file and put the code.
import * as React from 'react';
import { Avatar } from 'react-native-paper';
import { View,StyleSheet } from 'react-native';
const AvatarTextExample = () => {
return (
<View style={styles.view}>
<Avatar.Text size={60} color="#fff" label="RA" style={styles.ra}/>
<Avatar.Text size={60} color="#fff" label="BJ" style={styles.bj}/>
<Avatar.Text size={60} color="#fff" label="PD" style={styles.pd}/>
</View>
);
};
export default AvatarTextExample;
const styles = StyleSheet.create ({
view: {
flexDirection: "row",
marginTop : 250,
marginLeft : 40
},
ra: {
marginRight : 50,
backgroundColor : 'darksalmon'
},
bj: {
marginRight : 50,
backgroundColor : 'burlywood'
},
pd: {
backgroundColor : 'cadetblue'
}
})
Step 4 - Run project
In the last step run your project using bellow command.
npm start
Output
It will help you...
material ui avatar text example in react native,material ui avatar text react native,material ui avatar text app react native,material ui avatar text app in react native, react native material ui avatar text example, react native material ui avatar text
- React Native Pressable Example
- React Native Material Appbar With Content Component Example
- React Native Refresh Control Tutorial Example
- React Native Material Appbar Example
- React Native Range Slider Example
- React Native Toast Notification Example
- React Native Material Icon List Example
- React Native Layout Props Tutorial