Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RNTester] Merge AlertIOSExample page into AlertExample page #35586

Closed
wants to merge 9 commits into from

Conversation

Saadnajmi
Copy link
Contributor

@Saadnajmi Saadnajmi commented Dec 7, 2022

Summary

AlertIOS was deprecated and removed long ago (e2bd7db) but there continues to be a test page with the name AlertIOS in RN-Tester. AlertIOSExample.js contains valid examples of how to use Alert.prompt() so it's worth keeping them around. Let's move those into AlertExample.js and remove AlertIOSExample.js. While we're here, let's do some extra fixes to the test page:

  • Remove showsIndividualExamples = true. For whatever reason, I needed to remove this to show the examples properly...
  • Convert all uses of <TouchableHighlight> with <Pressable>. The latter replaces the former, so I thought that made sense..

Some extra context:

In React Native macOS, we had forked AlertIOS into AlertMacOS, with a corresponding example page. This PR was made while working on removing those (microsoft#1548).

Changelog

[INTERNAL] [CHANGED] - Moved Alert.prompt examples into common rn-tester test page

Test Plan

Test page shows up fine on iOS .

Simulator Screen Recording - iPhone 14 Pro - 2022-12-07 at 15 15 40

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Dec 7, 2022
@analysis-bot
Copy link

analysis-bot commented Dec 7, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,110,571 +595
android hermes armeabi-v7a 6,479,611 +588
android hermes x86 7,529,525 +581
android hermes x86_64 7,387,709 +580
android jsc arm64-v8a 8,977,211 -348
android jsc armeabi-v7a 7,708,594 -349
android jsc x86 9,040,335 -345
android jsc x86_64 9,517,631 -343

Base commit: 5928144
Branch: main

@analysis-bot
Copy link

analysis-bot commented Dec 7, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 5928144
Branch: main

@pull-bot
Copy link

pull-bot commented Dec 7, 2022

PR build artifact for 641a419 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

pull-bot commented Dec 7, 2022

PR build artifact for b186f91 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@Saadnajmi Saadnajmi marked this pull request as ready for review December 7, 2022 23:20
@pull-bot
Copy link

pull-bot commented Dec 7, 2022

PR build artifact for d1eced2 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot
Copy link
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 8, 2022
@facebook-github-bot
Copy link
Contributor

@NickGerleman merged this pull request in 76bf71e.

@Saadnajmi
Copy link
Contributor Author

@NickGerleman merged this pull request in 76bf71e.

Thank you!

@Saadnajmi Saadnajmi deleted the alerts branch January 4, 2023 03:16
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
`AlertIOS` was deprecated and removed long ago (facebook@e2bd7db) but there continues to be a test page with the name `AlertIOS` in RN-Tester. `AlertIOSExample.js` contains valid examples of how to use `Alert.prompt()` so it's worth keeping them around. Let's move those into `AlertExample.js` and remove `AlertIOSExample.js`. While we're here, let's do some extra fixes to the test page:

- Remove `showsIndividualExamples = true`. For whatever reason, I needed to remove this to show the examples properly...
- Convert all uses of `<TouchableHighlight>` with `<Pressable>`. The latter replaces the former, so I thought that made sense..

Some extra context:

In React Native macOS, we had forked `AlertIOS` into `AlertMacOS`, with a corresponding example page. This PR was made while working on removing those (microsoft#1548).

## Changelog

[INTERNAL] [CHANGED] - Moved `Alert.prompt` examples into common rn-tester test page

Pull Request resolved: facebook#35586

Test Plan:
Test page shows up fine on iOS .

![Simulator Screen Recording - iPhone 14 Pro - 2022-12-07 at 15 15 40](https://user-images.githubusercontent.com/6722175/206318170-1893c8f6-0596-4825-8312-f45e45557095.gif)

Reviewed By: lunaleaps

Differential Revision: D41825889

Pulled By: NickGerleman

fbshipit-source-id: 82e4405b1f3a1ccb558b5a5038a90416e7a32c29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants