Skip to content

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brandon Farrell committed Apr 16, 2018
1 parent 99d638a commit d189b80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Then add it to your code:

Works as a normal react <Text/> component. All probs available from `<Text/>`.
```js
<TextWith onPress={console.log('This is a ordinary text component')}>
<TextWith numberOfLines={1} onPress={console.log('This is a ordinary text component')}>
This is some text
</TextWith>
```

Works with [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons). But it's not a dependency! nor a necessity.
Works well with [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons). But it's not a dependency! nor a necessity.
```js
<TextWith
object={<Icon name='pencil' size={ 18 }/>}
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TextWith extends React.Component {
if(objectPosition == 'right'
|| objectPosition == 'bottom'){
components.reverse(); }

return (
<View style={[{ alignItems: 'center' }, containerStyle, { flexDirection: stackDirection }]}>
{ components }
Expand All @@ -66,8 +66,8 @@ TextWith.propTypes = {
object: PropTypes.object,
objectPosition: PropTypes.oneOf(['left', 'right', 'top', 'bottom']),
objectMargin: PropTypes.number,
textStyle: PropTypes.object,
containerStyle: PropTypes.object,
textStyle: PropTypes.any,
containerStyle: PropTypes.any,
};

export default TextWith;

0 comments on commit d189b80

Please sign in to comment.