SafeAreaView renders nested content and automatically applies paddings to reflect the portion of the view that is not covered by navigation bars, tab bars, toolbars, and other ancestor views
Syntax
|
Example
//Example of SafeAreaView in React Native import React, {Component} from 'react'; //Import React import {Text, View, SafeAreaView} from 'react-native'; //Import basic react native components
export default class SafeArea extends Component { render() { return ( <SafeAreaView style={{flex: 1}}> <View style={{flex: 1, paddingHorizontal: 20}}> <Text style={{fontSize: 20}}> Example of SafeArea in Recat Native </Text> <Text style={{fontSize: 20}}> This SafeArea Component is Used to hanlde the Padding and margins. This component mostly used in Ios. </Text> </View> </SafeAreaView> ); } }
|
Ruby program to add two integer numbers
how to create an array with Array.[](*args) in Ruby ?
What are the various Ruby runtimes, and how are they different?
Ruby program to check whether the given number is prime or not
Ruby program to reverse a string
Ruby program to check whether the given number is palindrome
Ruby program to print Fibonacci series
How to Replace array elements in Ruby?
Ruby program to print an array
Ruby program to check whether the given number is Armstrong
Program to Print Triangle of Numbers in Ruby
How to add/remove elements to Array in Ruby?
How to shuffle an array in Ruby?
Creating Array with Array.new(size, obj) in Ruby
Ruby program to generate random numbers
Ruby program to Calculate the factorial of given number
What are #method_missing and #send? Why are they useful?
How to Sort Array in Ruby?
How to get index of array element in Ruby
How to Get Input with Gets in Ruby
How to create two dimensional array in ruby?