nandorojo / zeego

Menus for React (Native) done right.
https://zeego.dev
MIT License
1.68k stars 45 forks source link

expo-router Stack.Screen headerTitle aligned to left instead of center #92

Closed alexclinky closed 3 months ago

alexclinky commented 4 months ago

If you render the Dropdown Menu Usage example code in a headerTitle it is aligned to left instead of right. If you use a View with a Text then it defaults to the center.

<Stack.Screen
        options={{
          headerTitle: () => (
            <ChatHeaderCentre
              chatContents={chatContents}
              isTyping={isTyping}
              onlineStatus={onlineStatus}
            />
          ),     
        }}
/>

How to align it to the right?

alexclinky commented 4 months ago

Screenshot 2024-07-02 at 21 55 34

Example, stuck to the left hand side; adding style such as flex: 1, doesn't work.

megacherry commented 3 months ago

headerRight, maybe? ;)