mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
JS: Format with Prettier v2.4.1 [3/n]
Summary: Changelog: [General][Internal] Reviewed By: zertosh Differential Revision: D31883447 fbshipit-source-id: cbbf85e4bf935096d242336f41bf0cc5d6f92359
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4e587a1b7d
commit
77ecc7ede1
@@ -471,7 +471,7 @@ class SelectionExample extends React.Component<
|
||||
module.exports = ([
|
||||
{
|
||||
title: 'Auto-focus',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<TextInput
|
||||
autoFocus={true}
|
||||
@@ -484,27 +484,27 @@ module.exports = ([
|
||||
{
|
||||
name: 'maxLength',
|
||||
title: "Live Re-Write (<sp> -> '_') + maxLength",
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return <RewriteExample />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Live Re-Write (no spaces allowed)',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return <RewriteExampleInvalidCharacters />;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'clearButton',
|
||||
title: 'Live Re-Write (no spaces allowed) and clear',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return <RewriteInvalidCharactersAndClearExample />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Auto-capitalize',
|
||||
name: 'autoCapitalize',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="none">
|
||||
@@ -541,7 +541,7 @@ module.exports = ([
|
||||
},
|
||||
{
|
||||
title: 'Auto-correct',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<WithLabel label="true">
|
||||
@@ -557,7 +557,7 @@ module.exports = ([
|
||||
{
|
||||
title: 'Keyboard types',
|
||||
name: 'keyboardTypes',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
const keyboardTypes = [
|
||||
'default',
|
||||
'ascii-capable',
|
||||
@@ -585,19 +585,19 @@ module.exports = ([
|
||||
},
|
||||
{
|
||||
title: 'Blur on submit',
|
||||
render: function(): React.Element<any> {
|
||||
render: function (): React.Element<any> {
|
||||
return <BlurOnSubmitExample />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Event handling',
|
||||
render: function(): React.Element<any> {
|
||||
render: function (): React.Element<any> {
|
||||
return <TextEventsExample />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'fontFamily, fontWeight and fontStyle',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
const fontFamilyA = Platform.OS === 'ios' ? 'Cochin' : 'sans-serif';
|
||||
const fontFamilyB = Platform.OS === 'ios' ? 'Courier' : 'serif';
|
||||
|
||||
@@ -639,14 +639,14 @@ module.exports = ([
|
||||
{
|
||||
title: 'Attributed text',
|
||||
name: 'attributedText',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return <TokenizedTextExample />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Text selection & cursor placement',
|
||||
name: 'cursorPlacement',
|
||||
render: function(): React.Node {
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View>
|
||||
<SelectionExample
|
||||
|
||||
Reference in New Issue
Block a user