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

react-native-custom-window

v0.22.8

Published

TODO

Readme

React Native Custom Window

Installation

To use this module in your React Native project, follow these steps:

  1. Install the npm package using the following command:
npm install react-native-custom-window --save
  1. Link the native module to your project:
react-native link react-native-custom-window

Usage

TitleBar Module

Import

import { titleBar } from "react-native-custom-window";

Methods

interface TitleBarColorProps {
  backgroundColor: string;
  inactiveBackgroundColor?: string;
  buttonBackgroundColor?: string;
  buttonInactiveBackgroundColor?: string;
  buttonForegroundColor?: string;
  buttonHoverForegroundColor?: string;
  buttonPressedForegroundColor?: string;
  buttonInactiveForegroundColor?: string;
  foregroundColor?: string;
  inactiveForegroundColor?: string;
  buttonHoverBackgroundColor?: string;
  buttonPressedBackgroundColor?: string;
}
  • enableExtend(): Promise Enables the extension of the window, allowing it to go titleBar.

  • TitlebarColor(props: TitleBarColorProps): Promise Sets the title bar color with the provided background and button background colors. The backgroundInactive and buttonBackgroundInactive are used when the window is inactive.

  • addBackButton(): Promise Adds a custom back button to the window.

  • removeBackButton(): Promise Removes the custom back button from the window.

  • disableBackButton(): Promise Disables the functionality of the default back button.

  • disableExtend(): Promise Disables the window extension, preventing it from going fullscreen.

Window Module

Import

import { titleBar } from "react-native-custom-window";

Methods

type ISetSize = {
  width: number;
  height: number;
};
  • setSize(props: ISetSize): void Sets a custom size for the window.

  • isFullScreen(): Promise Checks if the window is in fullscreen mode.

  • enterFullscreen(): Promise Activates the fullscreen mode for the window.

  • leaveFullscreen(): Promise Deactivates the fullscreen mode for the window.

FilePicker Module

Import

import { FilePicker } from "react-native-window-file-picker-module";

Method

  • pickFile(): Promise Opens a file picker dialog, allowing the user to select a file. Returns a promise that resolves to the selected file's path.

Example

import React from "react";
import { View, Button } from "react-native";
import { fullscreen, FilePicker } from "react-native-window-file-picker-module";

const App = () => {
  const handlePickFile = async () => {
    try {
      const filePath = await FilePicker.pickFile();
      console.log("Selected file path:", filePath);
    } catch (error) {
      console.error("Error while picking a file:", error);
    }
  };

  return (
    <View>
      <Button title="Go Fullscreen" onPress={() => fullscreen.enableExtend()} />
      <Button title="Pick a File" onPress={handlePickFile} />
    </View>
  );
};

export default App;

Platform Support

  • Android
  • iOS
  • Windows

Note: Please ensure you have the necessary permissions and configurations for file picking functionality on both platforms.

Contribution

This module is open for contributions. Feel free to create issues, pull requests, or suggest improvements.

License

This project is licensed under the MIT License.