Skip to content

[Packager] Windows support for Packager - Blacklist changes - #893

Closed
joewood wants to merge 1 commit into
react:masterfrom
joewood:windows-blacklist
Closed

[Packager] Windows support for Packager - Blacklist changes#893
joewood wants to merge 1 commit into
react:masterfrom
joewood:windows-blacklist

Conversation

@joewood

Copy link
Copy Markdown

Another Pull Request implementing the changes in issue #468 - Enabled Packager to run on Windows
This change relates to the blacklist fixes. It includes the path conversion for blacklist and changes to the default watched directory. It has no impact on Mac OSX.

@joewoodjoewood closed this Apr 17, 2015
@joewoodjoewood reopened this Apr 17, 2015
@joewoodjoewood closed this Apr 17, 2015
@joewoodjoewood reopened this Apr 17, 2015
@joewoodjoewood closed this Apr 17, 2015
@joewoodjoewood reopened this Apr 17, 2015
@facebook-github-botfacebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 17, 2015
Comment threadpackager/blacklist.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recently fixed this error in sane -- the file watcher.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but it's fine to keep

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, also noticed you fixed the NodeWatcher creation to pass an object with glob as a field, which seem to fix an issue where the glob pattern was being ignored.

@amasad

Copy link
Copy Markdown
Contributor

This looks good. Will pull shortly

@brentvatne

Copy link
Copy Markdown
Collaborator

@amasad - did this ever get pulled?

@brentvatnebrentvatne changed the title Windows support for Packager - Blacklist changes[Packager] Windows support for Packager - Blacklist changesJun 1, 2015
@amasad

Copy link
Copy Markdown
Contributor

Looks like it wasn't :/ I'll pull it

@a2a2 closed this in 19e3239Jul 2, 2015
cpojer pushed a commit to react/metro that referenced this pull request Jan 26, 2017
Summary:
Another Pull Request implementing the changes in issue #468 - Enabled Packager to run on Windows
This change relates to the blacklist fixes. It includes the path conversion for blacklist and changes to the default watched directory. It has no impact on Mac OSX.
Closesreact/react-native#893
Github Author: Joe Wood <joewood>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
meta-codesyncBot pushed a commit that referenced this pull request Dec 9, 2025
Summary:
Exports the `usePressability` hook and related types (`PressabilityConfig`, `PressabilityEventHandlers`) from the public `react-native` API, enabling library authors to implement Pressable-quality press handling on custom components without deep imports.
## Motivation
With deep imports being deprecated in 0.80 and removal planned for 0.82 (Discussion #893), libraries using `usePressability` need a public alternative.
**Why not just use `<Pressable>`?**
Pressable wraps content in a View, which:
- Adds an extra layer to the view hierarchy
- Can interfere with flex layout and styling
- Requires wrapping every pressable element
`usePressability` allows applying press handling directly to existing View/Text components—the same pattern React Native uses internally for `Text` and `TextInput`.
### Use Case
UI libraries like [Tamagui](https://tamagui.dev) use `usePressability` to provide press styles on styled View/Text primitives:
- Smooth press + hold + move out behavior
- Automatic cancellation when scrolling begins
- Hit slop support
- No wrapper View affecting layout
### Internal Usage
Already used by React Native's own components:
- `Pressable.js`
- `Text.js`
- `TextInput.js`
## Changelog
[GENERAL] [ADDED] - Export `usePressability` hook and `PressabilityConfig`/`PressabilityEventHandlers` types from the public API
Pull Request resolved: #54813
Test Plan:
- Existing Pressability tests pass
- Export accessible via `import { usePressability } from 'react-native'`
- TypeScript/Flow types correctly exported
Reviewed By: javache
Differential Revision: D88645567
Pulled By: huntie
fbshipit-source-id: accb31e7c53c6794476cf7b547152f4ab8973f1d
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@joewood@amasad@brentvatne@facebook-github-bot