From 57217edd79ee7b34b899e91fadbca22b235196d6 Mon Sep 17 00:00:00 2001 From: Lord Daniel Zautner Date: Sun, 13 Aug 2017 10:43:01 +0300 Subject: [PATCH] Update welcome view to dynamically show index file's extension based on platform Instead of having hardcoded `index.android.js` written in the welcome view, have it set dynamically based on the platform. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index f6e839d..7c03591 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ export default class ExampleApp extends Component { Welcome to React Native! ({platformText[Platform.OS]}) - To get started, edit index.android.js + To get started, edit index.{Platform.OS}.js Double tap R on your keyboard to reload,{'\n'}