Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React Native Setting Height And Width

import React from 'react';
import { View } from 'react-native';

const Dimensions = () => {
  return (
 <View>
      <View style={{
        width: 50, height: 50, backgroundColor: 'powderblue'
      }} />
      <View style={{
        width: 100, height: 100, backgroundColor: 'skyblue'
      }} />
      <View style={{
        width: 150, height: 150, backgroundColor: 'steelblue'
      }} />
    </View>
   );
  };
export default Dimensions; 
      
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #React #Native #Setting #Height #And #Width
ADD COMMENT
Topic
Name
2+6 =