Skip to content

Commit

Permalink
fix(ci): build errors (react-native-elements#3806)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitBhalla authored Jun 18, 2023
1 parent 8a43add commit a440ec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/base/src/Divider/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export const Divider: RneFunctionComponent<DividerProps> = ({
: { ...styles.leftInset, ...styles.rightInset }),
orientation === 'vertical' && styles.vertical,
// check if width is a number to avoid passing style={{ width: NaN }}
(width && !isNaN(width)) &&
width &&
!isNaN(width) &&
(orientation === 'horizontal'
? { borderBottomWidth: width }
: { borderRightWidth: width }),
Expand Down
1 change: 1 addition & 0 deletions website/docs/components/Header.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Includes all [View](https://reactnative.dev/docs/view#props) props.
| `containerStyle` | View Style | | Styling around the main container. |
| `edges` | Edge[] | `['left', 'top', 'right']` | SafeAreaView edges control. |
| `elevated` | boolean | | Elevation for header |
| `hideStatusBar` | Boolean | `false` | Accepts all props for StatusBar. |
| `leftComponent` | HeaderSubComponent | | Define your left component here. |
| `leftContainerStyle` | View Style | | Styling for container around the leftComponent. |
| `linearGradientProps` | Object | | Displays a linear gradient. See [usage](#lineargradient-usage). |
Expand Down
1 change: 1 addition & 0 deletions website/docs/components/Icon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Includes all [Text](https://reactnative.dev/docs/text#props) props.
| `reverse` | boolean | `false` | Reverses color scheme. |
| `reverseColor` | string | | Specify reverse icon color. |
| `solid` | boolean | `false` | Uses the solid font. |
| `testID` | string | `RNE__ICON__CONTAINER` | Test ID of icon. |
| `type` | string | `material` | Type of icon set. [Supported sets here](#available-icon-sets). |

</div>
Expand Down

0 comments on commit a440ec0

Please sign in to comment.