Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rit3zh/expo-ios-popover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ expo-ios-popover

A native iOS-style Popover for React Native + Expo.


⚑ Features

  • πŸ”₯ Native iOS popover style
  • πŸ›Έ Arrow positions: top, bottom, leading, trailing
  • 🎨 Customizable width, height & background
  • πŸ’Ž Simple API: Popover, Popover.Trigger, Popover.Content
  • ✨ Easy to integrate into any Expo project

🧩 Usage

import React from "react";
import { View, Text, Pressable } from "react-native";
import { Popover } from "expo-ios-popover";

export default function App() {
  return (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
      <Popover id="example" arrowEdge="top">
        <Popover.Trigger>
          <Pressable
            style={{ padding: 12, backgroundColor: "#007AFF", borderRadius: 8 }}
          >
            <Text style={{ color: "white" }}>Open Popover πŸš€</Text>
          </Pressable>
        </Popover.Trigger>

        <Popover.Content
          style={{
            width: 220,
            height: 150,
            backgroundColor: "#fff",
            padding: 16,
            borderRadius: 12,
          }}
        >
          <Text>Hello from Popover! ✨</Text>
        </Popover.Content>
      </Popover>
    </View>
  );
}

πŸ“ API

Popover

Prop Type Default Description
id string β€” Unique identifier
arrowEdge "top" | "bottom" | "leading" | "trailing" "top" Arrow position
children React.ReactNode β€” Should include Trigger & Content

Popover.Trigger & Popover.Content

  • πŸ”˜ Trigger: pressable element to open popover
  • 🎯 Content: popover panel; width & height default to 200

πŸš€ Installation

npm install expo-ios-popover
# or
yarn add expo-ios-popover

🎨 License

MIT Β© 2025

About

🎯 SwiftUI Popovers in React Native β€” lightweight, native popovers with arrow support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •