Skip to content

Commit 43ab256

Browse files
author
Christopher J. Brody
committed
require logo image in the beginning of src/App.js
1 parent 2777231 commit 43ab256

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from "react";
22
import { View, Text, Animated, StyleSheet, StatusBar } from "react-native";
33

4+
const logo = require("./assets/react-logo.png");
5+
46
export default class App extends React.Component {
57
constructor(props) {
68
super(props);
@@ -37,7 +39,7 @@ export default class App extends React.Component {
3739
<Animated.Image
3840
style={[styles.headerImage, rotationStyle]}
3941
resizeMode={"contain"}
40-
source={require("./assets/react-logo.png")}
42+
source={logo}
4143
/>
4244
<Text style={styles.appTitle}>Welcome to React Native Web️</Text>
4345
<Text style={styles.appSubtitle}>Vanilla Edition</Text>

0 commit comments

Comments
 (0)