Skip to content

Commit 9b147a5

Browse files
hramosfacebook-github-bot
authored andcommittedDec 20, 2017
Clarify use of Flow props types in cli example
Summary: This was introduced as part of a codemod a few months back. Hopefully this edit makes the example code clearer. Closes #17189 Differential Revision: D6613378 Pulled By: hramos fbshipit-source-id: da7263b3ce2b5c45d6e312807c88743fe10cd15d
1 parent 5ea5683 commit 9b147a5

File tree

1 file changed

+2
-1
lines changed
  • local-cli/templates/HelloWorld

1 file changed

+2
-1
lines changed
 

‎local-cli/templates/HelloWorld/App.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const instructions = Platform.select({
1919
'Shake or press menu button for dev menu',
2020
});
2121

22-
export default class App extends Component<{}> {
22+
type Props = {};
23+
export default class App extends Component<Props> {
2324
render() {
2425
return (
2526
<View style={styles.container}>

0 commit comments

Comments
 (0)
Please sign in to comment.