-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streaming updates Fixes for Android
- Loading branch information
Alex Risch
authored and
Alex Risch
committed
Feb 6, 2024
1 parent
354c440
commit e76c63e
Showing
6 changed files
with
132 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
import {IButtonProps, Button as NativeButton} from 'native-base'; | ||
import React from 'react'; | ||
import {Platform} from 'react-native'; | ||
|
||
export const Button = (props: IButtonProps) => { | ||
return <NativeButton borderRadius={'120px'} {...props} />; | ||
// Bug related to Android and icons rendered by native-base | ||
const rightIcon = Platform.OS === 'ios' ? props.rightIcon : undefined; | ||
const leftIcon = Platform.OS === 'ios' ? props.leftIcon : undefined; | ||
|
||
return ( | ||
<NativeButton | ||
borderRadius={'120px'} | ||
{...props} | ||
rightIcon={rightIcon} | ||
leftIcon={leftIcon} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters