basic app
This commit is contained in:
21
src/components/Logo.js
Normal file
21
src/components/Logo.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import { Image } from 'react-native';
|
||||
|
||||
const Logo = ({ width = 120, height = 120, style = {} }) => {
|
||||
return (
|
||||
<Image
|
||||
source={require('../../resources/logo.png')} // You'll need to add logo.png to resources folder
|
||||
style={[
|
||||
{
|
||||
width,
|
||||
height,
|
||||
resizeMode: 'contain',
|
||||
marginBottom: 20,
|
||||
},
|
||||
style,
|
||||
]}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default Logo;
|
||||
Reference in New Issue
Block a user