From b434ae0f3dc67dbf1819c1f718ca7cbe4cfbffbd Mon Sep 17 00:00:00 2001 From: Mike Armstrong Date: Tue, 15 Sep 2015 14:46:54 -0700 Subject: [PATCH] Better text descriptions for examples Reviewed By: @mkonicek Differential Revision: D2443908 --- Examples/UIExplorer/BorderExample.js | 2 +- Examples/UIExplorer/LayoutEventsExample.js | 3 ++- Examples/UIExplorer/PanResponderExample.js | 2 +- Examples/UIExplorer/PointerEventsExample.js | 4 ++-- Examples/UIExplorer/TouchableExample.js | 2 +- Examples/UIExplorer/ViewExample.js | 4 +++- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Examples/UIExplorer/BorderExample.js b/Examples/UIExplorer/BorderExample.js index 0370e69b2..677b17d8c 100644 --- a/Examples/UIExplorer/BorderExample.js +++ b/Examples/UIExplorer/BorderExample.js @@ -94,7 +94,7 @@ var styles = StyleSheet.create({ }); exports.title = 'Border'; -exports.description = 'View borders'; +exports.description = 'Demonstrates some of the border styles available to Views.'; exports.examples = [ { title: 'Equal-Width / Same-Color', diff --git a/Examples/UIExplorer/LayoutEventsExample.js b/Examples/UIExplorer/LayoutEventsExample.js index 4dec90f8f..bcbb5cbb7 100644 --- a/Examples/UIExplorer/LayoutEventsExample.js +++ b/Examples/UIExplorer/LayoutEventsExample.js @@ -141,7 +141,8 @@ var styles = StyleSheet.create({ }); exports.title = 'Layout Events'; -exports.description = 'Layout events can be used to measure view size and position.'; +exports.description = 'Examples that show how Layout events can be used to ' + + 'measure view size and position.'; exports.examples = [ { title: 'LayoutEventExample', diff --git a/Examples/UIExplorer/PanResponderExample.js b/Examples/UIExplorer/PanResponderExample.js index 649ea21cb..49ff6611a 100644 --- a/Examples/UIExplorer/PanResponderExample.js +++ b/Examples/UIExplorer/PanResponderExample.js @@ -31,7 +31,7 @@ var PanResponderExample = React.createClass({ statics: { title: 'PanResponder Sample', - description: 'Basic gesture handling example', + description: 'Shows the use of PanResponder to provide basic gesture handling.', }, _panResponder: {}, diff --git a/Examples/UIExplorer/PointerEventsExample.js b/Examples/UIExplorer/PointerEventsExample.js index cd402c471..735a5952d 100644 --- a/Examples/UIExplorer/PointerEventsExample.js +++ b/Examples/UIExplorer/PointerEventsExample.js @@ -250,6 +250,6 @@ var styles = StyleSheet.create({ exports.framework = 'React'; exports.title = 'Pointer Events'; -exports.description = '`pointerEvents` is a prop of View that gives control ' + - 'of how touches should be handled.'; +exports.description = 'Demonstrates the use of the pointerEvents prop of a ' + + 'View to control how touches should be handled.'; exports.examples = exampleClasses.map(infoToExample); diff --git a/Examples/UIExplorer/TouchableExample.js b/Examples/UIExplorer/TouchableExample.js index ba5294412..f8ced267d 100644 --- a/Examples/UIExplorer/TouchableExample.js +++ b/Examples/UIExplorer/TouchableExample.js @@ -27,7 +27,7 @@ var { } = React; exports.displayName = (undefined: ?string); -exports.description = 'Touchable and onPress examples'; +exports.description = 'Touchable and onPress examples.'; exports.title = ' and onPress'; exports.examples = [ { diff --git a/Examples/UIExplorer/ViewExample.js b/Examples/UIExplorer/ViewExample.js index 312fbe230..c20d7e119 100644 --- a/Examples/UIExplorer/ViewExample.js +++ b/Examples/UIExplorer/ViewExample.js @@ -85,7 +85,9 @@ var ViewBorderStyleExample = React.createClass({ }); exports.title = ''; -exports.description = 'Basic building block of all UI.'; +exports.description = 'Basic building block of all UI, examples that ' + + 'demonstrate some of the many styles available.'; + exports.displayName = 'ViewExample'; exports.examples = [ {