Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
5.20 destructure react-native import and remove unneeded arrow-func b…
Browse files Browse the repository at this point in the history
…races
  • Loading branch information
Sweth Chandramouli committed Apr 16, 2018
1 parent fd26733 commit abb6404
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions albums/index.ios.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
// import a library to help create a component
import React from 'react';
import ReactNative from 'react-native';
import { Text, AppRegistry } from 'react-native';

// create a component
const App = () => {
return (
<Text>Some Text</Text>
);
};
const App = () => (
<Text>Some Text</Text>
);

// render it to the device
ReactNative.AppRegistry.registerComponent(
AppRegistry.registerComponent(
'albums',
() => App
);

0 comments on commit abb6404

Please sign in to comment.