npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tylo-floating-bubble

v1.1.0

Published

A React Native floating bubble component with native Android overlay popup for Expo SDK 49+

Readme

Tylo Floating Bubble

A React Native floating bubble component with native Android overlay popup for Expo SDK 49+.

Features

  • 🎈 Floating Bubble: Draggable floating bubble with snap-to-edge functionality
  • 🎨 Modern UI: Beautiful popup with animations and modern design
  • 📱 Native Android: Built with native Android overlay for smooth performance
  • 🗑️ Delete Area: Circular delete area with haptic feedback and visual effects
  • Expo Compatible: Works with Expo SDK 49+
  • 🎯 Customizable: Dynamic content and styling options
  • 🔄 Smooth Animations: Spring animations and smooth transitions

Installation

npm install tylo-floating-bubble

Usage

Basic Usage

import React from 'react';
import { FloatingBubbleHelper } from 'tylo-floating-bubble';

const App = () => {
  const showBubble = async () => {
    const bubbleData = {
      // Bubble params
      title: "New Order #1234",
      subtitle: "Tap to view order details",
      showBadge: true,
      badgeCount: 1,
      
      // Popup params
      popupTitle: "New Ride Request",
      popupPrice: "$24.50",
      popupDuration: "15 min",
      popupDistance: "8.2 km",
      popupPickupAddress: "123 Main Street, Downtown Area",
      popupDestinationAddress: "456 Business Center, Tech District",
      popupPaymentMethod: "Credit Card",
      popupAcceptText: "Accept",
      popupRejectText: "Reject",
    };

    const success = await FloatingBubbleHelper.showBubble(bubbleData);
    if (success) {
      console.log("Bubble shown successfully!");
    }
  };

  return (
    <View>
      <Button title="Show Bubble" onPress={showBubble} />
    </View>
  );
};

Permission Management

import { FloatingBubbleHelper } from 'tylo-floating-bubble';

// Check permission
const hasPermission = await FloatingBubbleHelper.checkPermission();

// Request permission
const granted = await FloatingBubbleHelper.requestPermission();

Bubble Controls

// Show bubble
await FloatingBubbleHelper.showBubble(bubbleData);

// Hide bubble
await FloatingBubbleHelper.hideBubble();

// Check if bubble is visible
const isVisible = await FloatingBubbleHelper.isVisible();

API Reference

FloatingBubbleHelper

showBubble(options: FloatingBubbleOptions): Promise<boolean>

Shows the floating bubble with the specified options.

Options:

  • title?: string - Bubble title
  • subtitle?: string - Bubble subtitle
  • showBadge?: boolean - Show badge on bubble
  • badgeCount?: number - Badge count number
  • popupTitle?: string - Popup title
  • popupPrice?: string - Popup price
  • popupDuration?: string - Popup duration
  • popupDistance?: string - Popup distance
  • popupPickupAddress?: string - Pickup address
  • popupDestinationAddress?: string - Destination address
  • popupPaymentMethod?: string - Payment method
  • popupAcceptText?: string - Accept button text
  • popupRejectText?: string - Reject button text

hideBubble(): Promise<boolean>

Hides the floating bubble.

isVisible(): Promise<boolean>

Checks if the bubble is currently visible.

checkPermission(): Promise<boolean>

Checks if overlay permission is granted.

requestPermission(): Promise<boolean>

Requests overlay permission from the user.

Android Permissions

The library requires the following permission in your AndroidManifest.xml:

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

Features

🎈 Floating Bubble

  • Draggable bubble that snaps to screen edges
  • Customizable badge with count
  • Smooth animations and transitions

🎨 Popup Design

  • Modern UI with rounded corners and shadows
  • Green price card with white text
  • Location dots (green for pickup, red for destination)
  • Payment method display with emoji
  • Accept/Reject buttons with animations

⚡ Animations

  • Spring animation for popup appearance
  • Scale animation for button presses
  • Smooth fade out when closing
  • Bubble click feedback animation

🗑️ Delete Area

  • Circular delete area appears when dragging bubble
  • Haptic feedback when entering delete area
  • Red border effect on bubble when in delete zone
  • Instant show/hide without animation delays
  • Smooth deletion animation with scale and fade

Requirements

  • React Native 0.72+
  • Expo SDK 49+
  • Android API 21+ (Android 5.0+)

Example

Check out the example/ directory for a complete working example.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT © zaininijar

Support

If you find this library helpful, please give it a ⭐ on GitHub!