New profile feed header (#7056)
* Init hacking
* Lil baby button checkpoint
* Playing around
* Revert "Playing around"
This reverts commit f58a7fafa1.
* Mostly there
* Cleanups
* Cleanup
* Fix report dialog nesting
* Remove transform on native
* Rename header
* Fix layout, overflowing FAB buttons
* Remove hack
* Couple of fixes
* Keep Pin primary CTA (#7061)
* Update src/screens/Profile/components/ProfileFeedHeader.tsx
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Simplify, use old string
* Wrap Trans better
---------
Co-authored-by: dan <dan.abramov@gmail.com>
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,7 @@ export * as Header from '#/components/Layout/Header'
|
||||
|
||||
export type ScreenProps = React.ComponentProps<typeof View> & {
|
||||
style?: StyleProp<ViewStyle>
|
||||
noInsetTop?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,6 +29,7 @@ export type ScreenProps = React.ComponentProps<typeof View> & {
|
||||
*/
|
||||
export const Screen = React.memo(function Screen({
|
||||
style,
|
||||
noInsetTop,
|
||||
...props
|
||||
}: ScreenProps) {
|
||||
const {top} = useSafeAreaInsets()
|
||||
@@ -35,7 +37,7 @@ export const Screen = React.memo(function Screen({
|
||||
<>
|
||||
{isWeb && <WebCenterBorders />}
|
||||
<View
|
||||
style={[a.util_screen_outer, {paddingTop: top}, style]}
|
||||
style={[a.util_screen_outer, {paddingTop: noInsetTop ? 0 : top}, style]}
|
||||
{...props}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user