Skip to content

Toolbar does not expand or apply glass effect when using <GlassView> in Expo #1278

@audn

Description

@audn

Describe the bug
I’m not sure whether this is a bug or a feature request, but after adding <GlassView> to the toolbar, the toolbar itself doesn’t expand or adopt the glass effect.

image

Code snippet

function KeyboardToolbar() {
    return (
        <RNToolbar opacity="4F">
            <RNToolbar.Prev
                icon={() => {
                    return (
                        <GlassView
                            style={twStyle(
                                "w-9 h-9 z-50 items-center justify-center rounded-full"
                            )}
                            // glassEffectStyle="regular"
                            glassEffectStyle="clear"
                            isInteractive
                        >
                            <Icon
                                type="Feather"
                                name="arrow-left"
                                // className="mr-2"
                                size={25}
                                color={twColor("white")}
                            />
                        </GlassView>
                    );
                }}
            />
            <RNToolbar.Next
                style={twStyle("z-50")}
                icon={() => {
                    return (
                        <GlassView
                            style={twStyle(
                                "w-9 h-9 z-50 ml-2 items-center justify-center rounded-full"
                            )}
                            // glassEffectStyle="regular"
                            glassEffectStyle="clear"
                            isInteractive
                        >
                            <Icon
                                type="Feather"
                                name="arrow-right"
                                size={25}
                                // className="ml-2"
                                color={twColor("white")}
                                // color={twColor("brand-primary-100")}
                            />
                        </GlassView>
                    );
                }}
            />
            <RNToolbar.Done
                button={() => {
                    return (
                        <GlassContainer style={twStyle("z-50")}>
                            <GlassView
                                style={twStyle(
                                    "mr-1 w-9 h-9 bg-app-200 z-50 items-center justify-center rounded-full"
                                )}
                                glassEffectStyle="regular"
                                // glassEffectStyle="clear"
                                isInteractive
                            >
                                <TouchableOpacity
                                    onPress={() => {
                                        Keyboard.dismiss();
                                    }}
                                >
                                    {/* <View className="-mb-2"> */}
                                    <Icon
                                        type="MaterialIcons"
                                        name="keyboard-hide"
                                        size={25}
                                        color={twColor("on-200")}
                                        // color={twColor("brand-primary-100")}
                                    />
                                </TouchableOpacity>
                            </GlassView>
                        </GlassContainer>
                    );
                }}
            />
            <RNToolbar.Background>
                <GlassView
                    isInteractive
                    style={twStyle("w-full h-full absolute")}
                    glassEffectStyle="regular"
                />
            </RNToolbar.Background>
        </RNToolbar>
    );
}```


**Smartphone (please complete the following information):**

- Desktop OS:
- Device: iphone 17
- OS: ios26
- RN version: 0.81.5
- RN architecture: new
- JS engine: Hermes
- Library version: 1.20.4

**Additional context**
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

KeyboardToolbarAnything related to KeyboardToolbar component iOS 26Anything specific to iOS 26

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions