Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrOOnauta committed Feb 5, 2023
1 parent e450a9c commit c5c6ec6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ export default function App() {
/>
```
### containerStyle + inputStyle:
### Custom Lib Styles:
<div>
<img src="https://github.com/AstrOOnauta/react-native-international-phone-number/blob/master/images/custom-styles.png">
</div>
```jsx
<PhoneInput
Expand All @@ -230,6 +234,12 @@ export default function App() {
borderColor: '#F3F3F3',
marginVertical: 16,
}}
flagContainerStyle={{
borderTopLeftRadius: 7,
borderBottomLeftRadius: 7,
backgroundColor: '#808080',
justifyContent: 'center',
}}
/>
```
Expand All @@ -238,7 +248,8 @@ export default function App() {
- `value?`: string
- `onChangeText?`: (text: string) => void
- `containerStyle?`: StyleProp<ViewStyle>
- `inputStyle?`: StyleProp<ViewStyle>
- `flagContainerStyle?`: StyleProp<ViewStyle>
- `inputStyle?`: StyleProp<InputStyle>
- `withDarkTheme?`: boolean
- `disabled?`: boolean
- `placeholder?`: string
Expand Down
Binary file added images/custom-styles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5c6ec6

Please sign in to comment.