GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update platform specific code inspiration code for Button component by cHaLkdusT · Pull Request #19752 · react/react-native

Conversation

@cHaLkdusT

@cHaLkdusT cHaLkdusT commented Jun 16, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Updated Button component inspiration. Refactored code takes advantage of Platform Specific Code, as we want to re-use as much code as possible.

Test Plan

  1. Import Button component
  2. Button should work the same

Related PRs

N/A

Release Notes

[GENERAL] [ENHANCEMENT] [Button] - Uses spread operator for platform specific code in creating styles

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cHaLkdusT
Update platform specific code inspiration code for Button component
edbc250
@facebook-github-bot

facebook-github-bot commented Jun 16, 2018

Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-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 Jun 16, 2018
@facebook-github-bot

facebook-github-bot commented Jun 16, 2018

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react-native-bot react-native-bot added ✅Test Plan Type: Enhancement A new feature or enhancement of an existing feature. labels Jun 16, 2018
@facebook-github-bot

facebook-github-bot commented Jul 16, 2018

Copy link
Copy Markdown
Contributor

@cHaLkdusT I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

yungsters and others added 22 commits July 17, 2018 10:04
@yungsters @cHaLkdusT
FBJS: Upgrade to 0.8.17
1bdf0ad
Reviewed By: hramos

Differential Revision: D8458729

fbshipit-source-id: 1e92098b2651751f1b7ba3c8da1316fe4c0ca808
@yungsters @cHaLkdusT
React sync for revisions c0fe8d6...ae14317
9a4b243
Summary:
This sync includes the following changes:
- **[ae14317](react/react@ae14317d6)**: Inline fbjs/lib/emptyFunction (#13054) //<Dan Abramov>//
- **[72434a7](react/react@72434a768)**: Remove or inline some fbjs dependencies (#13046) //<Dan Abramov>//
- **[64c54ed](react/react@64c54edea)**: Adding movementX and movementY to synthenticMouseEvent fixes #6723 (#9018) //<Jason Williams>//
- **[9bd4d1f](react/react@9bd4d1fae)**: Synchronously restart when an error is thrown during async rendering (#13041) //<Andrew Clark>//
- **[9bda7b2](react/react@9bda7b28f)**: Suspended high pri work forces lower priority work to expire early  (#12965) //<Andrew Clark>//
- **[2e75779](react/react@2e7577907)**: Fix incorrect data in compositionend event with Korean IME on IE11 (#10217) (#12563) //<Crux>//
- **[bc963f3](react/react@bc963f353)**: setJSResponder in Fabric renderer (#13031) //<Sebastian Markbåge>//
- **[051637d](react/react@051637da6)**: Extract Fabric event handlers from canonical props (#13024) //<Sebastian Markbåge>//
- **[2a80859](react/react@2a8085980)**: Remove rAF fork (#12980) //<Flarnie Marchan>//
- **[e0c7834](react/react@e0c78344e)**: Retry on error if there's lower priority pending work (#12957) //<Andrew Clark>//
- **[9725065](react/react@9725065eb)**: Update bundle sizes for 16.4.1 release //<Dan Abramov>//
- **[0b87b27](react/react@0b87b2790)**: Updating package versions for release 16.4.1 //<Dan Abramov>//
- **[036ae3c](react/react@036ae3c6e)**: Use native event dispatching instead of Simulate or SimulateNative (#13023) //<Philipp Spieß>//
- **[945fc1b](react/react@945fc1bfc)**: Call gDSFP with the right state in react-test-render (#13030) //<Rafał Ruciński>//
- **[3925301](react/react@392530104)**: Remove feature flag around 'getDerivedStateFromProps' bug fix (#13022) //<Flarnie Marchan>//
- **[1594409](react/react@1594409fa)**: Scheduler depends on common packages (#13020) //<Dan Abramov>//
- **[d5c1119](react/react@d5c11193e)**: Added production profiling bundle type (#12886) //<Brian Vaughn>//
- **[ec60457](react/react@ec60457bc)**: Popping context is O(1) in SSR (#13019) //<Dan Abramov>//
- **[30bc8ef](react/react@30bc8ef79)**: Allow multiple root children in test renderer traversal API (#13017) //<Dan Abramov>//
- **[d480782](react/react@d480782c4)**: Don’t error when returning an empty Fragment (#12966) //<Philipp Spieß>//
- **[4ac6f13](react/react@4ac6f133a)**: Fallback to event.srcElement for IE9 (#12976) //<Nathan Hunzaker>//
- **[23be410](react/react@23be4102d)**: Fixed an issue with nested contexts unwinding when server rendering. Issue #12984 (#12985) //<Eric Soderberg>//
- **[d0d4280](react/react@d0d428064)**: Remove old reference to inst._wrapperState (#12987) //<Nathan Hunzaker>//
- **[c78957e](react/react@c78957eac)**: Fix an SVG focusing crash in IE11 (#12996) //<Jifa Jiang>//
- **[bfb12eb](react/react@bfb12ebb5)**: delete a couple of redundant lines in performWorkOnRoot() in ReactFiberScheduler.js (#13003) //<Nathan Quarles>//
- **[394b17e](react/react@394b17eed)**: Update custom renderer docs //<Dan Abramov>//
- **[188c425](react/react@188c4252a)**: Fix react-dom ReferenceError requestAnimationFrame in non-browser env (#13000) (#13001) //<Ivan Babak>//
- **[9cf3733](react/react@9cf3733a9)**: update comment in computeAsyncExpiration() to reflect code (#12994) //<Nathan Quarles>//
- **[c5a733e](react/react@c5a733e1e)**: Fix links of docs on the comment (#12795) //<Ende93>//
- **[36546b5](react/react@36546b513)**: Set the correct initial value on input range (#12939) //<Maxime Nory>//
- **[15767a8](react/react@15767a8f8)**: [scheduler] 5/n Error handling in scheduler (#12920) //<Flarnie Marchan>//
- **[3118ed9](react/react@3118ed9d6)**: Expose unstable_interactiveUpdates on ReactDOM (#12943) //<Andrew Clark>//
- **[524a743](react/react@524a74331)**: Fix for Flow issues in SimpleCacheProvider (#12942) //<Flarnie Marchan>//
- **[ae57b12](react/react@ae57b125c)**: [simple-cache-provider] Use LRU cache eviction (#12851) //<Andrew Clark>//
- **[e0a03c1](react/react@e0a03c1b4)**: Extend input type check in selection capabilities (#12062) (#12135) //<Spyros Ioakeimidis>//
- **[79a740c](react/react@79a740c6e)**: Rename variables to remove references to 'global' global (#12931) //<Flarnie Marchan>//
- **[ff724d3](react/react@ff724d3c2)**: [scheduler] 4/n Allow splitting out `schedule` in fb-www, prepare to fix polyfill issue internally (#12900) //<Flarnie Marchan>//
- **[83f76e4](react/react@83f76e4db)**: ForwardRefs supports propTypes (#12911) //<Brian Vaughn>//
- **[8aeea5a](react/react@8aeea5afa)**: Do not assign node.value on input creation if no change will occur (#12925) //<Nathan Hunzaker>//
- **[aa85b0f](react/react@aa85b0fd5)**: Upgrade to Jest 23 (#12894) //<Simen Bekkhus>//
- **[61777a7](react/react@61777a78f)**: [scheduler] 3/n Use a linked list instead of map and queue for callback storage (#12893) //<Flarnie Marchan>//
- **[e7bd3d5](react/react@e7bd3d59a)**: No longer expose ReactNativeComponentTree (#12904) //<Sebastian Markbåge>//
- **[f35d989](react/react@f35d989be)**: TestRenderer warns if flushThrough is passed the wrong params (#12909) //<Brian Vaughn>//
- **[5578700](react/react@557870067)**: Record "actual" times for all Fibers within a Profiler tree (alt) (#12910) //<Brian Vaughn>//
- **[76e0707](react/react@76e07071a)**: [scheduler] 2/n Adding 'schedule' fixture (#12884) //<Flarnie Marchan>//
- **[345e0a7](react/react@345e0a71a)**: Improve tests for 'schedule' module (#12880) //<Flarnie Marchan>//
- **[8765d60](react/react@8765d6089)**: Update bundle sizes for 16.4.0 release //<Andrew Clark>//
- **[d427a56](react/react@d427a563d)**: Updating package versions for release 16.4.0 //<Andrew Clark>//
- **[53852a8](react/react@53852a887)**: add functional components warning about legacy context api (#12892) //<Chang Yan>//
- **[fe747a5](react/react@fe747a51c)**: Add React.Timeout to getComponentName (#12890) //<Toru Kobayashi>//
- **[c601f7a](react/react@c601f7a64)**: add siblings Timeout components test case (#12862) //<Chang Yan>//
- **[7350358](react/react@735035837)**: add legacy context API warning in strict mode (#12849) //<Chang Yan>//
- **[e885791](react/react@e88579184)**: Fix a regression that caused us to listen to extra events at the top (#12878) //<Dan Abramov>//
- **[7c0aca2](react/react@7c0aca289)**: Rollup freeze: false (#12879) //<Brian Vaughn>//
- **[33289b5](react/react@33289b530)**: Tests and fixes for 'timing out' behavior (#12858) //<Flarnie Marchan>//
- **[ad27845](react/react@ad27845cc)**: Fix double-firing submit events (#12877) //<Sophie Alpert>//
- **[dd5fad2](react/react@dd5fad296)**: Update Flow to 0.70 (#12875) //<Dan Abramov>//
- **[1300365](react/react@13003654e)**: Pass "start time" and "commit time" to Profiler callback (#12852) //<Brian Vaughn>//
- **[dc3b144](react/react@dc3b144f4)**: Treat Rollup "warnings" as errors (#12868) //<Dan Abramov>//
- **[d7b9b49](react/react@d7b9b4921)**: Fix react native example links in README of 'react-reconciler' (#12871) //<Kevin (Kun) "Kassimo" Qian>//
- **[9bed4a6](react/react@9bed4a6ae)**: https in reactProdInvariant text (#12869) //<Sophie Alpert>//
- **[47b003a](react/react@47b003a82)**: Resolve host configs at build time (#12792) //<Dan Abramov>//

Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions c0fe8d6...ae14317

Reviewed By: bvaughn

Differential Revision: D8458731

fbshipit-source-id: afefaa50685d43e70c8ea85c70d2e29dee311cbb
@ikesyo @cHaLkdusT
Fix Stable release date of 0.58.0 (#19751)
35be485
Summary:
See #19715 (comment) for the details.

hramos
Closes #19751

Differential Revision: D8466070

Pulled By: hramos

fbshipit-source-id: 569e84119ac927e393889ad2c2f38d2b982aa6e8
@dulmandakh @cHaLkdusT
limit ndk jobs for RNTester on CI (#19755)
91b3d68
Summary:
Limit number of NDK jobs of ReactAndroid on CI using $BUILD_THREADS environment variable. Otherwise, it was spawning 32 jobs while building RNTester, which caused in OOM or unexpected failure.

CI: https://circleci.com/gh/dulmandakh/react-native/387

Android CI is green again 😍
Closes #19755

Differential Revision: D8466069

Pulled By: hramos

fbshipit-source-id: fd507d12c8e93f718e047719daa68aa25c37bfb2
@hramos @cHaLkdusT
Enable CocoaPods tests, add parallelism (#19764)
7f37735
Summary:
Enable CocoaPods test, iOS e2e.
Use parallelism to run several tests simultaneously within the same machine.

Circle CI
Closes #19764

Differential Revision: D8471955

Pulled By: hramos

fbshipit-source-id: c484fd6c66fb2d0d2305ced29e34cb305f73fb55
@mdvacca @cHaLkdusT
Moving more logs from Log -> Flog
1298f00
Reviewed By: fkgozali

Differential Revision: D8433247

fbshipit-source-id: e666fbf2abb81697ba6fb508c149af8a1a2035f1
@mdvacca @cHaLkdusT
Add support to receive null payload in events
10a804b
Reviewed By: shergin

Differential Revision: D8439118

fbshipit-source-id: a45da18765d58f6e32d34e2e57f3a6a64daccf71
@mdvacca @cHaLkdusT
Add noop support for setJSResponder / clearJSReponder API methods
6597b2d
Reviewed By: fkgozali

Differential Revision: D8458980

fbshipit-source-id: 2411fb8106288f65cabdef12917d0f5086d1723a
@shergin @cHaLkdusT
Invalid JS responder error was promoted to warning
2ff1f60
Summary:
Given async nature of RN, it is quite possible situation, hence it should not be a redbox.
And in Fabric it happends all the time which makes debugging painful.

Reviewed By: mdvacca

Differential Revision: D8473511

fbshipit-source-id: cfe7a1d3d105fde3b23db4c4c07b99864215c94c
@shergin @cHaLkdusT
Fabric: Fixed error in parsing position style
592d6a5
Summary: This style/prop is called `position` (not `positionType`) in RN/JS API.

Reviewed By: mdvacca

Differential Revision: D8473509

fbshipit-source-id: f381189e05e6b618f3c74f1bc4610e737981b388
@shergin @cHaLkdusT
Fabric: Fixed error in parsing translateX/translateY prop
8a8cf35
Summary: Quite trivial.

Reviewed By: mdvacca

Differential Revision: D8473513

fbshipit-source-id: 5d20244cbaae5ea69c79379e9894adb05cef2eb5
@shergin @cHaLkdusT
Fabric: Fixed erratum in "borderRadius" prop name
8d99416
Summary: Trivial.

Reviewed By: mdvacca

Differential Revision: D8473506

fbshipit-source-id: ce2888edc1052f39a042904c02b3ac347feedbba
@shergin @cHaLkdusT
Fabric: Improved parsing EdgeInsets and CornerInsets styles
0dff67c
Summary: In case if it's just a number, it is treated as unified insets now.

Reviewed By: mdvacca

Differential Revision: D8473510

fbshipit-source-id: 1034377bc3e4abe55778c2f182360345419f00d5
@shergin @cHaLkdusT
Fabric: Universal fromDynamic for std::vector<...>
b7c0130
Summary:
Now, if `fromDynamic` is defined for some type, `fromDynamic` for `std::vector` of this type is also will be defined.
We need this for parsing `ImageSources` (a vector of `ImageSource`) type.

Reviewed By: fkgozali

Differential Revision: D8473508

fbshipit-source-id: d8dc8e3a3273f35b76c7132c553130762f768394
@futuun @cHaLkdusT
Make run-ios command play nicely with multiple Xcode versions (#19781)
1871b76
Summary:
I started using Xcode 10 beta and spotted that even though react-native cli is using cli tools from Xcode 10 for building it tries to open simulator from Xcode 9.4. Turned out that path to simulator app is hardcoded and doesn’t care about active developer directory.

1. You have to have more than one Xcode version (ie. 9.4 and 10 beta).
2. Change active developer directory to Xcode beta (`xcode-select -s /Applications/Xcode-beta.app/Contents/Developer`).
3. Without fix `react-native run-ios` will open simulator from Xcode 9.4, with fix it'll open simulator from active developer directory.

[CLI][IOS] [BUGFIX] [./local-cli] - use simulator from active developer directory
Closes #19781

Differential Revision: D8475915

Pulled By: TheSavior

fbshipit-source-id: d607f1f9eb9e565d4a017c21de50b5e569d171f9
Dmitry Zakharov @cHaLkdusT
Fix Modules concurrent access
26db00b
Reviewed By: fkgozali

Differential Revision: D8379392

fbshipit-source-id: 72495950ea5fcf37f5b1cc3413666879dfc81e5c
Pavlos Vinieratos @cHaLkdusT
Update Xcode projects (#19574)
1288ff6
Summary:
A few people have been complaining, including me, that when we compile a react native project, there are a lot of warnings from xcode, suggesting to update the project build settings to the new recommendations.

I took the liberty to actually update the xcode projects, so we can finally have these gone, as well as replace some deprecated methods with the new suggested ones.

I made two react native projects, one with the regular react native and the other one using this branch.
Left is before, right is after:
![screen shot 2018-06-05 at 15 44 34](https://user-images.githubusercontent.com/100233/40979899-6aba12da-68d7-11e8-8630-6c3009b6dc24.png)

[IOS] [MINOR] [Xcode] - updated the Xcode projects with the latest suggestions from Xcode 9.3, and replaced a few deprecated methods of iOS with their new replacements.
Closes #19574

Differential Revision: D8489006

Pulled By: hramos

fbshipit-source-id: 2922b2e76aca6883c4f5d04e9c511b9fc1029583
@hramos @cHaLkdusT
Revert D8489006: [react-native][PR] Update Xcode projects
0e70ebc
Differential Revision:
D8489006

Original commit changeset: 2922b2e76aca

fbshipit-source-id: 84ba633b7e9a33b32e0a1347ebe6ca8bb1b02441
@elicwhite @cHaLkdusT
Update react-native init's flowconfig
2b5ed42
Summary:
Fixes #19766

On a clean project flow was complaining about `Cannot resolve module X` because of the removal of `providesModule`. This resolves the errors.

Reviewed By: rubennorte

Differential Revision: D8500303

fbshipit-source-id: 4e129ee4382f8ff36ab126e9f6c6530254cd382e
@shergin @cHaLkdusT
Fabric: Fixed Identity Transform matrix literal
b9fcf1c
Summary:
@public
As Janic janicduplessis mentioned on GH the literal should be slightly different.
8df7d51#r29390543

And here is prooflink: https://developer.apple.com/documentation/quartzcore/calayer/identity_transform?language=objc

Thanks Janic!

Created from Diffusion's 'Open in Editor' feature.

Reviewed By: fkgozali

Differential Revision: D8508559

fbshipit-source-id: 7427be36e041bf500bee1e06d2293f7b5ea8cf21
@dinhvh @cHaLkdusT
Fixed RCTAssert nullability
33d0db9
Summary:
```
Apps/Instagram/AppLibraries/IGReactKit/IGReactKit/IGReactRouteHelpers.m:54:5: error: implicit conversion from nullable pointer 'NSString * _Nullable' to non-nullable pointer type 'NSString * _Nonnull' [-Werror,-Wnullable-to-nonnull-conversion]
    RCTAssert(!(title != nil && logoAsTitle), @"Screen navigationOptions cannot have both title and logoAsTitle.");
    ^
Apps/Instagram/AppLibraries/IGReactKit/IGReactKit/IGReactRouteHelpers.m:54:5: error: implicit conversion from nullable pointer 'NSString * _Nullable' to non-nullable pointer type 'NSString * _Nonnull' [-Werror,-Wnullable-to-nonnull-conversion]
/data/sandcastle/boxes/trunk-hg-fbobjc-fbsource/xplat/js/react-native-github/React/Base/RCTAssert.h:28:14: note: expanded from macro 'RCTAssert'
        file:@(__FILE__) lineNumber:__LINE__ description:__VA_ARGS__]; \

```

Reviewed By: zats

Differential Revision: D8509133

fbshipit-source-id: ae7027efc18716193c86fbeeec74d41d1879797f
Pavlos Vinieratos @cHaLkdusT
Remove some methods that have NS_UNAVAILABLE set (#19790)
66b904d
Summary:
These lines were causing erros with the e2e tests on ios.
There are some methods that are not going to be called, and some definitions that are not correct.

needed for #19574.

we will run the e2e tests.

[INTERNAL] [MINOR] [Tests] - Fix some definitions.
Closes #19790

Differential Revision: D8509228

Pulled By: hramos

fbshipit-source-id: 78650e347db52305a587e3461ac56877e3c79062
shergin and others added 13 commits July 17, 2018 10:04
@shergin @cHaLkdusT
Fabric: Enhancements in ContextContainer
054173e
Summary:
@public
Everything is better with C++ templates.
In this cases templates allow us to remove additional parameters and casts on the callsite.

Reviewed By: mdvacca

Differential Revision: D8754523

fbshipit-source-id: 2340b2cd96ab0a60d54d9aa30dea3c072b951a8a
@shergin @cHaLkdusT
Fabric: Computed attributed string caching inside <Paragraph>
61f9114
Summary:
@public
Quite trivial. We had to have this from the day one.
We don't need cache invalidation policy because all subtree is immutable.

Reviewed By: mdvacca

Differential Revision: D8709973

fbshipit-source-id: bd7fcf0ae1dcb23894321cb5d16da18cb1ab788f
@shergin @cHaLkdusT
Fabric: text module was moved to components subdirectory
458a4e8
Summary:
@public
Trivial. We move all components into `/components/` subdirectory.

Reviewed By: mdvacca

Differential Revision: D8757014

fbshipit-source-id: 9db94d38fe027e9125d017a17cbd4cf79f0bcf88
@shergin @cHaLkdusT
Fabric: scrollview module was moved to components subdirectory
cf6daf4
Summary:
@public
Trivial. We move all components into `/components/` subdirectory.

Reviewed By: mdvacca

Differential Revision: D8757013

fbshipit-source-id: fe3021862b3a4f8f0799b0dfaf6d3039f8582a7f
@shergin @cHaLkdusT
Fabric: view module was moved to components subdirectory
9470b0f
Summary:
@public
Trivial. We move all components into `/components/` subdirectory.

Reviewed By: mdvacca

Differential Revision: D8757011

fbshipit-source-id: 6a7da09e01184d41d37a1e1782c20d3c79371ae3
@shergin @cHaLkdusT
Fabric: activityindicator module was moved to components subdirec…
8c88f1f
…tory

Summary:
@public
Trivial. We move all components into `/components/` subdirectory.

Reviewed By: mdvacca

Differential Revision: D8757015

fbshipit-source-id: 9b676728bf1aa4aa14345fa11a5b4a1f9f7ed472
@shergin @cHaLkdusT
Fabric: <Root> component was decoupled from <View>
4555a43
Summary:
@public
There is no reason to have it inside View; it deserves that.

Reviewed By: mdvacca

Differential Revision: D8757012

fbshipit-source-id: 881b54008b51614cd203ab97811494fa7c30e4ef
Umair Ansari @cHaLkdusT
- Invalid use of destructuring
c7fc28a
Summary: Pull Request resolved: #20178

Differential Revision: D8860733

Pulled By: TheSavior

fbshipit-source-id: ec4aa3050755652106dec9ea245394314c862e97
@ayc1 @cHaLkdusT
Fix JSLocaleTest
5e12e6b
Summary: becausereasons

Reviewed By: mdvacca

Differential Revision: D8838902

fbshipit-source-id: 0c6ca5ccde0439cacfa02771b2d99f26aa86f573
@Hypuk @cHaLkdusT
Add @DoNotStrip to RemoteConnection methods
88c1675
Summary: Add DoNotStrip to RemoteConnection methods

Reviewed By: alexeylang

Differential Revision: D8861729

fbshipit-source-id: d2b339f49dd25379dec6620d367786a9df02d28b
Peter Argany @cHaLkdusT
Added ImageEditor comment to clarify image access policy.
3a5aba8
Summary:
ImageEditor.cropImage creates a temporary file when downloading images https://fburl.com/07r68w9s

This temporary file can be stored on external storage on android. External storage is accessible to any other application on the device, which could possibly leak images.

Using external storage may be unavoidable. I've voiced my opinion and solicited others on T31548988. Once a good policy is agreed upon, we can implement it.

For now, I'm adding this comment to make it explicit how images are cached.

Reviewed By: achen1

Differential Revision: D8837808

fbshipit-source-id: 02341bc94a1c95340390a713b76fe85603fd8f1b
Ziqi Chen @cHaLkdusT
added image button as option for accessibility role
51a7ba7
Summary:
Because we're now separating accessibilityTraits into accessibilityRole and accessibilityState, we're going to only allow one role to be set, and allow one preset combinations of roles that make sense.

This diff adds image button as a role.

Reviewed By: PeteTheHeat

Differential Revision: D8846958

fbshipit-source-id: dad3783654b20abeb29767cdad7450d1896058c2
Ziqi Chen @cHaLkdusT
added image button role on iOS
bef6d4d
Summary:
Because we're now separating accessibilityTraits into accessibilityRole and accessibilityState, we're going to only allow one role to be set, and allow on preset combinations of roles that make sense.

This change adds iOS functionality to the role image button because a popular accessibilityTrait combination is image and button.

Reviewed By: ikenwoo

Differential Revision: D8847012

fbshipit-source-id: da386dbf82cb3854d14c228a1116da9f4067fe93
@cHaLkdusT
cHaLkdusT requested review from Kureev, grabbou, hramos, mhorowitz and shergin as code owners July 17, 2018 02:05
@cHaLkdusT

cHaLkdusT commented Jul 17, 2018

Copy link
Copy Markdown
Contributor Author

Rebasing this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pull-bot

pull-bot commented Jul 17, 2018

Copy link
Copy Markdown
Warnings
⚠️

🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

⚠️

❗ Big PR - This PR is extremely unlikely to get reviewed because it touches 86365 lines.

Generated by 🚫 dangerJS

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hramos
hramos suggested changes Aug 8, 2018
View reviewed changes

@hramos hramos left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks like something went wrong during the rebase.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cHaLkdusT

cHaLkdusT commented Aug 9, 2018

Copy link
Copy Markdown
Contributor Author

Should I re-submit a new PR to resolve rebasing issue?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot

facebook-github-bot commented Aug 26, 2018

Copy link
Copy Markdown
Contributor

@cHaLkdusT do you have any updates for this pull request? It's been a while since the last update so wanted to check in and see if you've looked at the requested changes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hramos

hramos commented Sep 12, 2018

Copy link
Copy Markdown
Contributor

You can push changes to this PR, or open a new one. Makes no difference to us.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cHaLkdusT cHaLkdusT closed this Oct 6, 2018
@cHaLkdusT

cHaLkdusT commented Oct 6, 2018

Copy link
Copy Markdown
Contributor Author

Will create a new PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cHaLkdusT cHaLkdusT mentioned this pull request Oct 6, 2018
🎨 Improve Button component stylesheet; removed duplicate styles #21535
Closed
facebook-github-bot pushed a commit that referenced this pull request Oct 9, 2018
@cHaLkdusT @facebook-github-bot
� Improve Button component stylesheet; removed duplicate styles (#21535)
bbb6a07
Summary:
Updated Button component inspiration. Refactored code takes advantage of Platform Specific Code, as we want to re-use as much code as possible.

1. Import Button component
2. Button should work the same

#19752

[GENERAL] [ENHANCEMENT] [Button] - Uses spread operator for platform specific code in creating styles
Pull Request resolved: #21535

Differential Revision: D10248048

Pulled By: TheSavior

fbshipit-source-id: 7260fa56f15b70b7c9499c8da418db7b2214b0dd
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
@cHaLkdusT @facebook-github-bot
� Improve Button component stylesheet; removed duplicate styles (reac…
2e5e092
…t#21535)

Summary:
Updated Button component inspiration. Refactored code takes advantage of Platform Specific Code, as we want to re-use as much code as possible.

1. Import Button component
2. Button should work the same

react#19752

[GENERAL] [ENHANCEMENT] [Button] - Uses spread operator for platform specific code in creating styles
Pull Request resolved: react#21535

Differential Revision: D10248048

Pulled By: TheSavior

fbshipit-source-id: 7260fa56f15b70b7c9499c8da418db7b2214b0dd
facebook-github-bot pushed a commit that referenced this pull request Oct 27, 2020
@rickhanlonii @facebook-github-bot
Update React Native to React 17.0.0
24bca49
Summary:
This sync includes the following changes:
- **[eaaf4cb](react/react@eaaf4cbce )**: 17.0.1 //<Dan Abramov>//
- **[6f62abb](react/react@6f62abb58 )**: Remove usage of Array#fill ([#20071](react/react#20071)) //<Dan Abramov>//
- **[40cfe1f](react/react@40cfe1f48 )**: Update CHANGELOG.md //<Dan Abramov>//
- **[f021a98](react/react@f021a983a )**: Bump versions for 17 ([#20062](react/react#20062)) //<Dan Abramov>//
- **[d1bb4d8](react/react@d1bb4d851 )**: Profiler: Include ref callbacks in onCommit duration ([#20060](react/react#20060)) //<Brian Vaughn>//
- **[c59c3df](react/react@c59c3dfe5 )**: useRef: Warn about reading or writing mutable values during render ([#18545](react/react#18545)) //<Brian Vaughn>//
- **[7b6cac9](react/react@7b6cac952 )**: Improved Profiler commit hooks test ([#20053](react/react#20053)) //<Brian Vaughn>//
- **[dfb6a40](react/react@dfb6a4033 )**: [Fast Refresh] Fix crashes caused by rogue Proxies ([#20030](react/react#20030)) ([#20039](react/react#20039)) //<Kai Riemann>//
- **[37cb732](react/react@37cb732c5 )**: Use bitwise OR to define flag masks ([#20044](react/react#20044)) //<Andrew Clark>//
- **[eb3181e](react/react@eb3181e77 )**: Add Visibility flag for hiding/unhiding trees ([#20043](react/react#20043)) //<Andrew Clark>//
- **[0dd809b](react/react@0dd809bdf )**: Remove last schedulePassiveEffectCallback call ([#20042](react/react#20042)) //<Andrew Clark>//
- **[8df7b79](react/react@8df7b7911 )**: Remove Passive flag from "before mutation" phase ([#20038](react/react#20038)) //<Andrew Clark>//
- **[c57fe4a](react/react@c57fe4a2c )**: ReactIs.isValidElementType Unit Test extended with PureComponent case ([#20033](react/react#20033)) //<adasq>//
- **[02da938](react/react@02da938fd )**: Don't double-invoke effects in legacy roots ([#20028](react/react#20028)) //<Brian Vaughn>//
- **[d95c493](react/react@d95c4938d )**: [EventSystem] Revise onBeforeBlur propagation mechanics ([#20020](react/react#20020)) //<Dominic Gannaway>//
- **[f46a80a](react/react@f46a80ae1 )**: Update outdated links and fix two broken links  ([#19985](react/react#19985)) //<Saikat Guha>//
- **[0a4c7c5](react/react@0a4c7c565 )**: [Flight] Don't warn for key, but error for ref ([#19986](react/react#19986)) //<Sebastian Markbåge>//
- **[993ca53](react/react@993ca533b )**: Enable eager listeners statically ([#19983](react/react#19983)) //<Dan Abramov>//
- **[40c52de](react/react@40c52de96 )**: [Flight] Add Runtime Errors for Non-serializable Values ([#19980](react/react#19980)) //<Sebastian Markbåge>//
- **[1992d97](react/react@1992d9730 )**: Revert "Temporarily disable Profiler commit hooks flag ([#19900](react/react#19900))" ([#19960](react/react#19960)) //<Brian Vaughn>//
- **[44d39c4](react/react@44d39c4d7 )**: Removed skip-error-boundaries modifications from old fork ([#19961](react/react#19961)) //<Brian Vaughn>//
- **[cc77be9](react/react@cc77be957 )**: Remove unnecessary error overriding in ([#19949](react/react#19949)) //<Paul Doyle>//
- **[9762527](react/react@97625272a )**: Debug tracing tests for CPU bound suspense ([#19943](react/react#19943)) //<Brian Vaughn>//
- **[43363e2](react/react@43363e279 )**: Fix codestyle for typeof comparison ([#19928](react/react#19928)) //<Eugene Maslovich>//
- **[5427b46](react/react@5427b4657 )**: Temporarily disable Profiler commit hooks flag ([#19900](react/react#19900)) //<Brian Vaughn>//
- **[1faf9e3](react/react@1faf9e3dd )**: Suspense for CPU-bound trees ([#19936](react/react#19936)) //<Andrew Clark>//
- **[7f08e90](react/react@7f08e908b )**: Fix missing context to componentDidMount() when double-invoking lifecycles ([#19935](react/react#19935)) //<Brian Vaughn>//
- **[9198a5c](react/react@9198a5cec )**: Refactor layout effect methods ([#19895](react/react#19895)) //<Brian Vaughn>//
- **[ba82eea](react/react@ba82eea38 )**: Remove disableSchedulerTimeoutInWorkLoop flag ([#19902](react/react#19902)) //<Andrew Clark>//
- **[c63741f](react/react@c63741fb3 )**: offscreen double invoke effects ([#19523](react/react#19523)) //<Luna Ruan>//
- **[c691734](react/react@c6917346f )**: Fixed broken Profiler test ([#19894](react/react#19894)) //<Brian Vaughn>//
- **[87c023b](react/react@87c023b1c )**: Profiler onRender only called when we do work ([#19885](react/react#19885)) //<Brian Vaughn>//
- **[81aaee5](react/react@81aaee56a )**: Don't call onCommit et al if there are no effects ([#19863](react/react#19863)) //<Andrew Clark>//
- **[7355bf5](react/react@7355bf575 )**: Consolidate commit phase hook functions ([#19864](react/react#19864)) //<Andrew Clark>//
- **[bc6b7b6](react/react@bc6b7b6b1 )**: Don't trigger lazy in DEV during element creation ([#19871](react/react#19871)) //<Dan Abramov>//
- **[a774502](react/react@a774502e0 )**: Use single quotes in getComponentName return ([#19873](react/react#19873)) //<Gustavo Saiani>//
- **[8b2d378](react/react@8b2d3783e )**: Use Passive flag to schedule onPostCommit ([#19862](react/react#19862)) //<Andrew Clark>//
- **[50d9451](react/react@50d9451f3 )**: Improve DevTools editing interface ([#19774](react/react#19774)) //<Brian Vaughn>//
- **[6fddca2](react/react@6fddca27e )**: Remove passive intervention flag ([#19849](react/react#19849)) //<Dan Abramov>//
- **[36df918](react/react@36df9185c )**: chore(docs): Removed outdated comment about fb.me link  ([#19830](react/react#19830)) //<Adnaan Bheda>//
- **[16fb2b6](react/react@16fb2b6f9 )**: Moved resetChildLanes into complete work ([#19836](react/react#19836)) //<Brian Vaughn>//
- **[cc58106](react/react@cc581065d )**: [email protected] //<Dan Abramov>//
- **[0044805](react/react@0044805c8 )**: Update CHANGELOG.md //<Dan Abramov>//
- **[0f70d4d](react/react@0f70d4dd6 )**: Consider components in jsx as missing dependencies in typescript-eslint/[email protected] ([#19815](react/react#19815)) //<Sebastian Silbermann>//
- **[84558c6](react/react@84558c61b )**: Don't visit passive effects during layout phase ([#19809](react/react#19809)) //<Andrew Clark>//
- **[ad8a0a8](react/react@ad8a0a8cd )**: [email protected] //<Dan Abramov>//
- **[77544a0](react/react@77544a0d6 )**: Update CHANGELOG.md //<Dan Abramov>//
- **[ed4fdfc](react/react@ed4fdfc73 )**: test(eslint-plugin-react-hooks): Run with TS parsers >= 2.x ([#19792](react/react#19792)) //<Sebastian Silbermann>//
- **[cd75f93](react/react@cd75f93c0 )**: eslint-plugin-react-hooks: fix compatibility with typescript-eslint/[email protected]+ ([#19751](react/react#19751)) //<Matthias Schiffer>//
- **[781212a](react/react@781212aab )**: Remove double space in test name ([#19762](react/react#19762)) //<Gustavo Saiani>//
- **[e7b2553](react/react@e7b255341 )**: Internal `act`: Flush timers at end of scope ([#19788](react/react#19788)) //<Andrew Clark>//
- **[d17086c](react/react@d17086c7c )**: Decouple public, internal act implementation ([#19745](react/react#19745)) //<Andrew Clark>//
- **[d38ec17](react/react@d38ec17b1 )**: [Flight] Set dispatcher for duration of performWork() ([#19776](react/react#19776)) //<Joseph Savona>//
- **[4f3f7ee](react/react@4f3f7eeb7 )**: Bugfix: Effect clean up when deleting suspended tree ([#19752](react/react#19752)) //<Andrew Clark>//
- **[7baf9d4](react/react@7baf9d412 )**: Combine Flags and SubtreeFlags types ([#19775](react/react#19775)) //<Andrew Clark>//
- **[1665443](react/react@166544360 )**: Rename effect fields ([#19755](react/react#19755)) //<Andrew Clark>//
- **[708fa77](react/react@708fa77a7 )**: Decrease expiration time of input updates ([#19772](react/react#19772)) //<Andrew Clark>//
- **[36df483](react/react@36df483af )**: Add feature flag to disable scheduler timeout in work loop ([#19771](react/react#19771)) //<Ricky>//
- **[bcc0aa4](react/react@bcc0aa463 )**: Revert "Revert "Remove onScroll bubbling flag ([#19535](react/react#19535))" ([#19655](react/react#19655))" ([#19761](react/react#19761)) //<Dan Abramov>//
- **[99cae88](react/react@99cae887f )**: Add failing test for passive effect cleanup functions and memoized components ([#19750](react/react#19750)) //<Brian Vaughn>//
- **[2cfd73c](react/react@2cfd73c4d )**: Fix typo in comment (Noticable→Noticeable) ([#19737](react/react#19737)) //<Ikko Ashimine>//
- **[53e622c](react/react@53e622ca7 )**: Fix instances of function declaration after return ([#19733](react/react#19733)) //<Bhumij Gupta>//
- **[b7d18c4](react/react@b7d18c4da )**: Support Babel's envName option in React Refresh plugin ([#19009](react/react#19009)) //<Kevin Weber>//
- **[1f38dcf](react/react@1f38dcff6 )**: Remove withSuspenseConfig ([#19724](react/react#19724)) //<Andrew Clark>//
- **[1396e4a](react/react@1396e4a8f )**: Fixes eslint warning when node type is ChainExpression ([#19680](react/react#19680)) //<Pascal Fong Kye>//
- **[a8500be](react/react@a8500be89 )**: Add `startTransition` as a known stable method ([#19720](react/react#19720)) //<Andrew Clark>//
- **[380dc95](react/react@380dc95de )**: Revert "Append text string to <Text> error message ([#19581](react/react#19581))" ([#19723](react/react#19723)) //<Timothy Yung>//
- **[ddd1faa](react/react@ddd1faa19 )**: Remove config argument from useTransition ([#19719](react/react#19719)) //<Andrew Clark>//
- **[92fcd46](react/react@92fcd46cc )**: Replace SuspenseConfig object with an integer ([#19706](react/react#19706)) //<Andrew Clark>//
- **[b754caa](react/react@b754caaaf )**: Enable eager listeners in open source ([#19716](react/react#19716)) //<Dan Abramov>//
- **[c1ac052](react/react@c1ac05215 )**: [Flight] Support more element types and Hooks for Server and Hybrid Components ([#19711](react/react#19711)) //<Dan Abramov>//
- **[1eaafc9](react/react@1eaafc9ad )**: Clean up timeoutMs-related implementation details ([#19704](react/react#19704)) //<Andrew Clark>//
- **[8da0da0](react/react@8da0da093 )**: Disable timeoutMs argument ([#19703](react/react#19703)) //<Andrew Clark>//
- **[60ba723](react/react@60ba723bf )**: Add SuspenseList to devTools ([#19684](react/react#19684)) //<Ben Pernick>//
- **[5564f2c](react/react@5564f2c95 )**: Add React.startTransition ([#19696](react/react#19696)) //<Ricky>//
- **[c4e0768](react/react@c4e0768d7 )**: Remove unused argument from `finishConcurrentRender` ([#19689](react/react#19689)) //<inottn>//
- **[848bb24](react/react@848bb2426 )**: Attach Listeners Eagerly to Roots and Portal Containers ([#19659](react/react#19659)) //<Dan Abramov>//
- **[d2e914a](react/react@d2e914ab4 )**: Remove remaining references to effect list ([#19673](react/react#19673)) //<Andrew Clark>//
- **[d6e4338](react/react@d6e433899 )**: Use Global Render Timeout for CPU Suspense ([#19643](react/react#19643)) //<Sebastian Markbåge>//
- **[64ddef4](react/react@64ddef44c )**: Revert "Remove onScroll bubbling flag ([#19535](react/react#19535))" ([#19655](react/react#19655)) //<Dan Abramov>//
- **[dd651df](react/react@dd651df05 )**: Keep onTouchStart, onTouchMove, and onWheel passive ([#19654](react/react#19654)) //<Dan Abramov>//
- **[b8fa09e](react/react@b8fa09e9e )**: provide profiling bundle for react-reconciler ([#19559](react/react#19559)) //<Julien Gilli>//
- **[23595ff](react/react@23595ff59 )**: Add missing param to safelyCallDestroy() ([#19638](react/react#19638)) //<Brian Vaughn>//
- **[ee409ea](react/react@ee409ea3b )**: change destroy to safelyCallDestroy ([#19605](react/react#19605)) //<Luna Ruan>//
- **[bcca5a6](react/react@bcca5a6ca )**: Always skip unmounted/unmounting error boundaries ([#19627](react/react#19627)) //<Brian Vaughn>//
- **[1a41a19](react/react@1a41a196b )**: Append text string to <Text> error message ([#19581](react/react#19581)) //<Timothy Yung>//
- **[e4afb2f](react/react@e4afb2fdd )**: [email protected] //<Dan Abramov>//
- **[ced05c4](react/react@ced05c46c )**: Update CHANGELOG.md //<Dan Abramov>//
- **[702fad4](react/react@702fad4b1 )**: refactor fb.me redirect link to reactjs.org/link ([#19598](react/react#19598)) //<CY Lim>//
- **[49cd77d](react/react@49cd77d24 )**: fix: leak strict mode with UMD builds ([#19614](react/react#19614)) //<Toru Kobayashi>//
- **[ffb749c](react/react@ffb749c95 )**: Improve error boundary handling for unmounted subtrees ([#19542](react/react#19542)) //<Brian Vaughn>//
- **[9b35dd2](react/react@9b35dd2fc )**: Permanently removed component stacks from scheduling profiler data ([#19615](react/react#19615)) //<Brian Vaughn>//
- **[3f8115c](react/react@3f8115cdd )**: Remove `didTimeout` check from work loop //<Andrew Clark>//
- **[9abc278](react/react@9abc2785c )**: Remove wasteful checks from `shouldYield` //<Andrew Clark>//
- **[1d5e10f](react/react@1d5e10f70 )**: [eslint-plugin-react-hooks] Report constant constructions ([#19590](react/react#19590)) //<Jordan Eldredge>//
- **[dab0854](react/react@dab0854c5 )**: Move commit passive unmount/mount to CommitWork ([#19599](react/react#19599)) //<Sebastian Markbåge>//
- **[ccb6c39](react/react@ccb6c3945 )**: Remove unused argument ([#19600](react/react#19600)) //<inottn>//
- **[6291255](react/react@629125555 )**: [Scheduler] Re-throw unhandled errors ([#19595](react/react#19595)) //<Andrew Clark>//
- **[b8ed6a1](react/react@b8ed6a1aa )**: [Scheduler] Call postTask directly ([#19551](react/react#19551)) //<Andrew Clark>//
- **[ce37bfa](react/react@ce37bfad5 )**: Remove resolutions from test renderer package.json ([#19577](react/react#19577)) //<Dan Abramov>//
- **[2704bb5](react/react@2704bb537 )**: Add ReactVersion to SchedulingProfiler render scheduled marks ([#19553](react/react#19553)) //<Kartik Choudhary>//
- **[0c52e24](react/react@0c52e24cb )**: Support inner component _debugOwner in memo ([#19556](react/react#19556)) //<Brian Vaughn>//
- **[0cd9a6d](react/react@0cd9a6de5 )**: Parallelize Jest in CI ([#19552](react/react#19552)) //<Andrew Clark>//
- **[a63893f](react/react@a63893ff3 )**: Warn about undefined return value for memo and forwardRef ([#19550](react/react#19550)) //<Brian Vaughn>//
- **[32ff428](react/react@32ff42868 )**: Add feature flag for setting update lane priority ([#19401](react/react#19401)) //<Ricky>//
- **[5bdd4c8](react/react@5bdd4c8c6 )**: Remove unused argument from call to jest method ([#19546](react/react#19546)) //<Gustavo Saiani>//
- **[a5fed98](react/react@a5fed98a9 )**: Register more node types that are used later as JSXIdentifiers ([#19514](react/react#19514)) //<Mateusz Burzyński>//
- **[f77c7b9](react/react@f77c7b9d7 )**: Re-add discrete flushing timeStamp heuristic (behind flag) ([#19540](react/react#19540)) //<Dominic Gannaway>//

Changelog: [general] [feature] Upgrade to React 17

Reviewed By: cpojer

Differential Revision: D24491201

fbshipit-source-id: c947da9dcccbd614e9dc58f3339b63e24829aca7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@grabbou grabbou Awaiting requested review from grabbou
@Kureev Kureev Awaiting requested review from Kureev
@mhorowitz mhorowitz Awaiting requested review from mhorowitz
@shergin shergin Awaiting requested review from shergin
1 more reviewer
@hramos hramos hramos requested changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Type: Enhancement A new feature or enhancement of an existing feature.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@cHaLkdusT @facebook-github-bot @pull-bot @hramos @react-native-bot @yungsters @ikesyo @dulmandakh @mdvacca @shergin @futuun @elicwhite @dinhvh @jdthomas @sahrens @fkgozali @rafeca @samwgoldman @ttsugriy @himabindugadupudi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.