Skip to content

Commit 9248d21

Browse files
author
Christopher J. Brody
committed
require logo image in the beginning of src/App.js
1 parent 5ad4dfe commit 9248d21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/App.js

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

6+
const logo = require("./assets/react-logo.png");
7+
68
export default class App extends React.Component {
79
constructor(props) {
810
super(props);
@@ -39,8 +41,7 @@ export default class App extends React.Component {
3941
<Animated.Image
4042
style={[styles.headerImage, rotationStyle]}
4143
resizeMode={"contain"}
42-
// FUTURE TODO require *once* at the beginning:
43-
source={require("./assets/react-logo.png")}
44+
source={logo}
4445
/>
4546
<Text style={styles.appTitle}>Welcome to React Native Web️</Text>
4647
<Text style={styles.appSubtitle}>Vanilla Edition</Text>

0 commit comments

Comments
 (0)