Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Including Image In React-Native

import React from "react";
import { StyleSheet, View, Image} from "react-native";
 
const Test = () => {
  return (
    <View> 
 <Image source={require('./images/orangutan.jpg')} style={{width: 300, height: 300}} />

    </View>
  );
};

const styles = StyleSheet.create({
  container: {
   height: 200, width: 200
  },
});

export default Test;
 
PREVIOUS NEXT
Tagged: #Including #Image #In
ADD COMMENT
Topic
Name
2+9 =