-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Dealer search and feedback stuff
* Tab label added to control how tab navigator stuff is displayed. * Viewers initial zoom changed, fixed share debounce. * Fuse integration increase limit. * Dealer and event share debounced. * Dealer and event router new tab label used. * Profile reload method turned into async callback. * Fixed search issue where an old property name was used.
- Loading branch information
1 parent
cec9e45
commit 3d369db
Showing
11 changed files
with
107 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { StyleSheet } from "react-native"; | ||
import { Label } from "./Label"; | ||
|
||
export const tabLabelMaxWidth = 110; | ||
|
||
export type TabLabelProps = { | ||
focused: boolean; | ||
children: string; | ||
wide: boolean; | ||
}; | ||
|
||
export const TabLabel = ({ focused, children, wide }: TabLabelProps) => { | ||
return ( | ||
<Label type="bold" style={[focused ? styles.focused : styles.unfocused, wide && styles.wide]} numberOfLines={1} ellipsizeMode="tail"> | ||
{children} | ||
</Label> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
wide: { | ||
maxWidth: tabLabelMaxWidth, | ||
paddingHorizontal: 5, | ||
}, | ||
unfocused: { | ||
maxWidth: tabLabelMaxWidth, | ||
opacity: 0.5, | ||
}, | ||
focused: { | ||
maxWidth: tabLabelMaxWidth, | ||
opacity: 1, | ||
}, | ||
}); |
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
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
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
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