nandorojo / zeego

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

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

Open alexclinky opened 4 days ago

alexclinky commented 4 days 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 days 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.