Skip to content

Commit

Permalink
docs: fix Text imports (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
gawrysiak authored and ferrannp committed May 9, 2018
1 parent 9ccf641 commit 20843ef
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
* <View>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
* <Paper style={styles.paper}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/RadioButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const RadioButtonContext: Context<?RadioButtonContextType> = 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 = {
Expand Down

0 comments on commit 20843ef

Please sign in to comment.