From 20843efa3dd633782e6ba1e8d72b7233ff3e7603 Mon Sep 17 00:00:00 2001 From: Grzegorz Gawrysiak Date: Wed, 9 May 2018 11:56:05 +0200 Subject: [PATCH] docs: fix Text imports (#353) --- src/components/Dialog/Dialog.js | 2 +- src/components/Divider.js | 4 ++-- src/components/Modal.js | 3 +-- src/components/Paper.js | 3 +-- src/components/RadioButtonGroup.js | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/Dialog/Dialog.js b/src/components/Dialog/Dialog.js index d8f021f7ba..61babc6c0b 100644 --- a/src/components/Dialog/Dialog.js +++ b/src/components/Dialog/Dialog.js @@ -48,7 +48,7 @@ type Props = { * ## Usage * ```js * import * as React from 'react'; - * import { Text, View } from 'react-native'; + * import { View } from 'react-native'; * import { Button, Dialog, DialogActions, DialogContent, DialogTitle, Paragraph } from 'react-native-paper'; * * export default class MyComponent extends React.Component { diff --git a/src/components/Divider.js b/src/components/Divider.js index 36884a4f06..34219936be 100644 --- a/src/components/Divider.js +++ b/src/components/Divider.js @@ -25,8 +25,8 @@ type Props = { * ## Usage * ```js * import * as React from 'react'; - * import { Text, View } from 'react-native'; - * import { Divider } from 'react-native-paper'; + * import { View } from 'react-native'; + * import { Divider, Text } from 'react-native-paper'; * * const MyComponent = () => ( * diff --git a/src/components/Modal.js b/src/components/Modal.js index c18d1545ef..5d407a5283 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -42,8 +42,7 @@ type State = { * ## Usage * ```js * import * as React from 'react'; - * import { Text } from 'react-native'; - * import { Modal } from 'react-native-paper'; + * import { Modal, Text } from 'react-native-paper'; * * export default class MyComponent extends React.Component { * state = { diff --git a/src/components/Paper.js b/src/components/Paper.js index 1c2953fda7..4fa931e3ee 100644 --- a/src/components/Paper.js +++ b/src/components/Paper.js @@ -32,8 +32,7 @@ type Props = { * ## Usage * ```js * import * as React from 'react'; - * import { Text } from 'react-native'; - * import { Paper } from 'react-native-paper'; + * import { Paper, Text } from 'react-native-paper'; * * const MyComponent = () => ( * diff --git a/src/components/RadioButtonGroup.js b/src/components/RadioButtonGroup.js index 4ded5e0a1f..fae9b72cba 100644 --- a/src/components/RadioButtonGroup.js +++ b/src/components/RadioButtonGroup.js @@ -34,7 +34,7 @@ export const RadioButtonContext: Context = createReactC * ```js * import * as React from 'react'; * import { View } from 'react-native'; - * import { RadioButtonGroup, RadioButton } from 'react-native-paper'; + * import { RadioButtonGroup, RadioButton, Text } from 'react-native-paper'; * * export default class MyComponent extends Component { * state = {