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

Merge 0.66 into master #951

Merged
merged 1,826 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1826 commits
Select commit Hold shift + click to select a range
37dc1d4
Rename immediate to ReactNativeMicrotask in Bridge
Huxpro Jul 27, 2021
c5f8c31
Implement View.removeClippedSubviews prop
sammy-SC Jul 27, 2021
5b77dfd
Add "Use Native Driver" control to RNTester Animated Composing example
charlesbdudley Jul 27, 2021
1c21a11
docs: Fix dead links in README for rn-tester (#31901)
Naturalclar Jul 27, 2021
eb4297e
docs: update links to forwarded page (#31903)
Naturalclar Jul 27, 2021
c2ba886
Remove redundant warnings for RCTMountingManager
sammy-SC Jul 27, 2021
d3e8362
Ignore when a text string or number is supplied as a child.
sota000 Jul 27, 2021
d98ec75
React Native sync for revisions cae6350...419cc9c
rickhanlonii Jul 28, 2021
eb38543
Remove option to make measure calls asynchronous
sammy-SC Jul 28, 2021
6d4fff2
Fix android view dimensions
mdvacca Jul 28, 2021
3081db2
Refactor DevServerHelper to separate checking if packager running
amy588 Jul 28, 2021
be189cd
Introduce queueMicrotask API
Huxpro Jul 28, 2021
dc8d218
Shim Immediate APIs when Promise is queueing to JSVM
Huxpro Jul 28, 2021
f592ad0
Attempt to fix undefined instance handle in EventTarget
sammy-SC Jul 28, 2021
f1b1ba8
Makes "force" property available to Apple Pencil based events. (#31780)
swittk Jul 29, 2021
8b1b7f7
Fix typo in VirtualizedList-test.js (#31756)
eltociear Jul 29, 2021
09b9422
Pass context through to all prop parser (core changes)
JoshuaGross Jul 29, 2021
5d33e65
Pass context through to all prop parser (props structs changes)
JoshuaGross Jul 29, 2021
02b8eac
Pass context through to all prop parser (conversions.h)
JoshuaGross Jul 29, 2021
175b1ea
Pass PropsParserContext to prop parsing layer
JoshuaGross Jul 29, 2021
5df92fb
Fix typo in Constants.h (#31049)
eltociear Jul 29, 2021
ce44104
Daily `arc lint --take CLANGFORMAT`
Jul 29, 2021
1c87d4a
Update Dimension.js typo (#29858)
chownation Jul 29, 2021
853e7a5
Make existential type an error in xplat
evanyeung Jul 29, 2021
feae814
Remove unused import (#30544)
jacobp100 Jul 30, 2021
8066bc9
Updated TextInput autoCompleteType prop to autoComplete 1/2 (#26010)
jeswinsimon Jul 30, 2021
cdce14f
Implement PlatformColor in Fabric Android
mdvacca Jul 31, 2021
cb0e1d6
Allows to set individual (left,top,right,bottom) dotted/dashed border…
fabOnReact Aug 2, 2021
3ed3d34
Correct error message in getViewState method
sammy-SC Aug 2, 2021
1e4dd5e
Clean up RAIICallbackManager experiment
RSNara Aug 2, 2021
32bfd7a
Stop sharing LongLivedObjectCollection with the bridge
RSNara Aug 2, 2021
034c6df
Stop sharing LongLivedObjectCollection with the bridge
RSNara Aug 2, 2021
0fa8253
setup fragment based tab bar navigation
Aug 2, 2021
f9ca578
Remove 'using namespace facebook::jni'
mdvacca Aug 2, 2021
809fd7e
Add TODO to fix and enable 'generated_tests-codegen_testsAndroid'
mdvacca Aug 2, 2021
4f2c6d0
Move RNTester Buck library to GitHub (#31435)
motiz88 Aug 2, 2021
8efbb2e
Move react-native Buck library to GitHub
motiz88 Aug 2, 2021
0638889
Extract feature detection as an utilitiy module
Huxpro Aug 3, 2021
d9a9ae3
Conditionalize the Regenerator Setup
Huxpro Aug 3, 2021
402eec8
Protect against crashes when over-releasing a TouchEvent
JoshuaGross Aug 3, 2021
4fcf468
Co-locate Buck targets for JS polyfills with their sources
motiz88 Aug 3, 2021
0b4f4ee
chore: update Dimensions API Flow types (#31898)
Simek Aug 3, 2021
8a8a532
Fix order of calls for Native Animated Module
sammy-SC Aug 3, 2021
d4ee734
Merge BUCK file at Libraries/ into root
motiz88 Aug 3, 2021
228b8e5
Fix Buck package boundary violation in core components schema
motiz88 Aug 3, 2021
de25552
Allow resolving view from FabricUIManager
javache Aug 3, 2021
c39a4c7
Flush operations queue when animation starts
sammy-SC Aug 3, 2021
363a8fb
iOS: Log error when invalid NSNull data is passed to RCTAsyncLocalSto…
p-sun Aug 3, 2021
dc15c48
fbshipit-source-id: 909b2667480ed96ae376896d966f6c27f5e73964
motiz88 Aug 4, 2021
df9cd05
Update OSS Buck definitions (#31948)
motiz88 Aug 4, 2021
8408d72
Update Android Dockerfile to include root BUCK file (#31950)
motiz88 Aug 4, 2021
a8a8503
Check for negative `numberOfLines` in TextView
Aug 4, 2021
f1b49f7
Fix NPE when hierarchy return null values
mdvacca Aug 4, 2021
43a91d0
Extend getInspectorDataForInstance to return props
mdvacca Aug 4, 2021
81167e0
Add documentation for FabricUIManager.getInspectorDataForInstance
mdvacca Aug 4, 2021
298fd10
chore: remove FlowFixMe (#29468)
Naturalclar Aug 4, 2021
b26ae3e
Move RCT* Buck targets to GitHub
motiz88 Aug 4, 2021
1ed1ac7
Move integration test Buck targets to GitHub
motiz88 Aug 4, 2021
30d37cf
Move RNTester unit/integration test Buck targets to GitHub
motiz88 Aug 4, 2021
260c5a3
Move RCTTestApple into packages/rn-tester
motiz88 Aug 4, 2021
a169009
React Native sync for revisions 419cc9c...19092ac
acdlite Aug 4, 2021
7ce0f40
refactor!: drop deprecated `StatusBarIOS` (#31466)
ecreeth Aug 5, 2021
b385484
Fix OSS Buck parsing errors (#31957)
motiz88 Aug 5, 2021
8d15372
Fix Buck package boundary violation involving RCTEventDispatcher.h (#…
motiz88 Aug 5, 2021
b30fe90
Remove package boundary exceptions in OSS Buck config
motiz88 Aug 5, 2021
72f7962
Update JSLoader.cpp (#29270)
sunnylqm Aug 5, 2021
3bc883c
Warn when negative `numberOfLines` prop set on <Text/> component
Aug 5, 2021
55f504a
Make So loading inside generated TMM delegates less confusing
RSNara Aug 6, 2021
cf717ff
Add TODOs to unify component names between JS - Android - iOS - C++
mdvacca Aug 6, 2021
91437d6
Replace Paper -> old renderer
mdvacca Aug 6, 2021
fcead14
Fix Deadlock in RCTi18nUtil (iOS) (#31032)
Saadnajmi Aug 6, 2021
309ee06
Codegen: Always prepare filesystem
hramos Aug 6, 2021
c677e19
- Bump CLI to ^6.0.0 (#31971)
thymikee Aug 6, 2021
e35a963
Fix to make taps on views outside parent bounds work on Android (#29039)
hsource Aug 6, 2021
91cac20
Create slider accessibility delegate in createViewInstance (#31942)
janicduplessis Aug 7, 2021
f3374d0
Flush operations queue when animation starts in RCTNativeAnimatedModule
sammy-SC Aug 9, 2021
b931aa7
Add Flow libdefs for `global`
Huxpro Aug 9, 2021
9b4f8e0
Feat/dynamic color borders (#31140)
habovh Aug 10, 2021
ffb1831
Cleanup warnings in the NDK build
cortinico Aug 10, 2021
beb3c2b
Back out "Flush operations queue when animation starts in RCTNativeAn…
sammy-SC Aug 10, 2021
d583c2f
Fix Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider when bui…
sammy-SC Aug 10, 2021
df65dbb
introduce RCTPlatformColorUtils
philIip Aug 10, 2021
e10c222
hook up PlatformColorParser to RCTPlatformColorUtils
philIip Aug 10, 2021
7c68cf4
replace SharedColor alias with class for more reliable template deduc…
philIip Aug 10, 2021
83b1629
Deploy 0.157.0 to xplat
evanyeung Aug 10, 2021
307f548
General Logging Util (stab) class for native errors (#31998)
sota000 Aug 11, 2021
899fa25
Documenting UserFlow.endFailure
dmitry-voronkevich Aug 11, 2021
637ab46
iOS: When RCTSyncImageManager image times out, log warning instead of…
p-sun Aug 11, 2021
56dcc6e
Un-deprecate ReactSoftException
RSNara Aug 11, 2021
cbec66e
Rename ReactSoftException to ReactSoftExceptionLogger
RSNara Aug 11, 2021
27fec95
Updated TextInput autoCompleteType prop to autoComplete 2/2 (#26010)
jeswinsimon Aug 12, 2021
18132c1
Remove autoCompleteType as a native component prop
Aug 12, 2021
f1b4748
Match native*.js and Native*.js srcs
christolliday Aug 12, 2021
3560753
Fix TextInput Cursor jumping to the right when the placeholder null (…
fabOnReact Aug 12, 2021
ae494e7
Bump AGP to 4.2.2
cortinico Aug 12, 2021
1f8c560
Flatten the `react-native-codegen` included build. (#32007)
cortinico Aug 12, 2021
d45d4ea
iOS: Log image url in test environment when image times out
p-sun Aug 12, 2021
f6d0f9d
Fix BorderExample for DynamicColorIOS
Aug 12, 2021
2b427f8
Add a flag to warn whenever the legacy NativeModule system is used
RSNara Aug 13, 2021
f93d95e
Log SoftExceptions when the legacy NativeModule system is used
RSNara Aug 13, 2021
b7fd68e
Introduce JReactSoftExceptionLogger to log SoftExceptions from C++
RSNara Aug 13, 2021
f536f82
Warn whenever CxxNativeModules are used
RSNara Aug 13, 2021
ecd6927
Fix typo in RCTConvert.m (#31067)
eltociear Aug 13, 2021
f51773e
Allow Modal to handle hardware escape key in the same way the back bu…
levibuzolic Aug 14, 2021
c0ce346
Nullable ReconnectingWebSocket params
amy588 Aug 16, 2021
5b5ece7
Clean up unbatched only experiment
sammy-SC Aug 16, 2021
22bc8c2
Clean up AsyncEventBeatV2 experiment
sammy-SC Aug 16, 2021
ec083f9
Back out "Fix Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvide…
sammy-SC Aug 16, 2021
eb93886
Include Swift lib in LIBRARY_SEARCH_PATHS
sammy-SC Aug 16, 2021
c29ec46
fix#29319 - ios dismiss modal (#31500)
intergalacticspacehighway Aug 16, 2021
5819538
Fix selectionColor doesn't style Android TextInput selection handles …
fabOnReact Aug 16, 2021
913448f
Fixing CI error "Entry file RNTester/js/RNTesterApp.ios.js does not e…
graytmatterMS Aug 16, 2021
3e5998e
Fix dashed/dotted border drawing when border-radius is 0 (#28359)
IjzerenHein Aug 16, 2021
c317a70
Add a way to bind log function to the unified react native logger.
sota000 Aug 16, 2021
aad9f35
React Native sync for revisions 19092ac...5634ed1
rickhanlonii Aug 17, 2021
6daf5bb
Exclude nativeImageSource.js instead of matching [Nn]
christolliday Aug 17, 2021
48567e5
Revert D20590739
Aug 17, 2021
b48c3d1
Fix irregular indent in template (#29871)
nacam403 Aug 17, 2021
d3345f5
JS: Fix "Modal | Basic" Test's Layout
p-sun Aug 17, 2021
f971ea9
replace testing-support-lib with androidx buck targets in RN
Aug 18, 2021
842bcb9
`Android/ColorProps`: ColorProps with value null should be defaultCol…
hank121314 Aug 18, 2021
c18a492
Fix Dimensions not updating on Android (#31973)
jonnyandrew Aug 18, 2021
5923ee5
refactor: remove DefaultProps from the StatusBar Component (#31631)
Aug 18, 2021
06e31c7
fix AGP 7 compatibility (#32030)
dulmandakh Aug 18, 2021
22f81b2
Clean up Fabric startSurface API used in Venice
Aug 18, 2021
4804e68
Expose "unreserved" trait constants that can be mapped per-component
JoshuaGross Aug 18, 2021
29249e1
Call super.onActivityResult in ReactActivity
fatalsun Aug 19, 2021
3e0d778
Move react_native_log out of utils (#32042)
sota000 Aug 19, 2021
d75683a
fix: Resolve NODE_BINARY *after* finding the path to node (#32029)
santiagofm Aug 19, 2021
10cd273
Ship "Disable 'virtual view' preallocation" experiment in code
JoshuaGross Aug 19, 2021
b29a787
Emit soft error for warning
sota000 Aug 19, 2021
ec3a3df
Enable ktfmt
cgrushko Aug 19, 2021
8db946a
Pass configFile: false to Babel parser
motiz88 Aug 19, 2021
f085e09
Passing the scheme field throughout all the metro connection pipeline…
jimmy623 Aug 19, 2021
cb0782c
Adding activity check to enable Dev mode
arushikesarwani94 Aug 19, 2021
b55201c
Deploy 0.158.0 to xplat
mroch Aug 19, 2021
abc1ace
- Fix broken Circle CI due to missing BUCK rule for androidx:tests (#…
Aug 19, 2021
8258f5e
Remove BUILD FILE SYNTAX from build files
chatura-atapattu Aug 19, 2021
2c2b831
Apply new buildifier fixes
chatura-atapattu Aug 20, 2021
b761624
Remove redundant includes
sammy-SC Aug 20, 2021
1036c14
Provide logger to YGConfig
sammy-SC Aug 20, 2021
c2b971d
Set initial maximum surface size to viewport size
sammy-SC Aug 20, 2021
1271e7a
iOS: Don't display LogBox in Dev if Bridge was invalided
p-sun Aug 21, 2021
6c08016
Update ImageBackground.js (#32055)
edenb-moveo Aug 21, 2021
1d0fb08
Fix typo and grammar (#31916)
pietro909 Aug 23, 2021
8434177
Added Selection prop to TextInputProps
Aug 23, 2021
9187e20
Selection prop is applied for TextInput when component is mounting
Aug 23, 2021
88f0676
use correct gradle packageTask and asserts dir for android libraries …
Legion2 Aug 23, 2021
cfb6c3c
Codegen: Add codegen.js wrapper around generate-specs.sh
hramos Aug 24, 2021
ff4b336
Add Flow libdefs for HermesInternalType
Huxpro Aug 24, 2021
11f8d9c
Add support for the UIAccessibilityTraitsTabBar
jimmy623 Aug 24, 2021
d756d43
Add support for AccessibilityValue
jimmy623 Aug 24, 2021
ddf9a63
fix typos in comments (#32061)
bell-steven Aug 24, 2021
bc1c533
Add window to jest setup (#28067)
timomeh Aug 24, 2021
7299cb4
React Native sync for revisions 424fe58...bd5bf55
kacieb Aug 24, 2021
a6768bf
Remove usages of `dynamic_casts` that are used inside assertions
cortinico Aug 24, 2021
dcfa0dc
Fix broken CI with a run of prettier
cortinico Aug 24, 2021
5902152
Fixed dynamic behavior of <Text adjustsFontSizeToFit={true}> on Andro…
shergin-cb Aug 25, 2021
72eb060
Bump @react-native/polyfills version (#32074)
NickGerleman Aug 25, 2021
e6eb81e
Include Swift lib in LIBRARY_SEARCH_PATHS
Aug 25, 2021
10daf76
chore: prefer the local react-native-codegen package (#32096)
tido64 Aug 26, 2021
b78f6ce
feat: add Android 12 BLUETOOTH_ADVERTISE to PermissionsAndroid (#32079)
iBotPeaches Aug 25, 2021
2707324
Update manual testing script to also test Hermes for RNTester
Aug 26, 2021
ab82900
Move react-native-codegen to root
Aug 27, 2021
a0429eb
[0.66.0-rc.0] Bump version numbers
Aug 27, 2021
d20b34a
Native component check in deprecatedPropType was inverted (#31164)
acoates-ms Aug 31, 2021
b23dd85
OSS: Fix $ENTRY_FILE check for non-Debug Xcode builds
fkgozali Sep 1, 2021
ea5109f
OSS: add Xcode 12.5 + M1 machines CocoaPods post_install workaround
fkgozali Sep 1, 2021
038cdda
Switch order of search libraries to fix M1 build error
sammy-SC Sep 1, 2021
1594af1
Copy repo-config dependencies for bumping release version
Sep 1, 2021
d552362
[0.66.0-rc.1] Bump version numbers
Sep 1, 2021
0d7586c
[LOCAL] postfix timestamp to bust yarn cache
tido64 Jun 8, 2021
b4a1d2b
Make JSI a dynamic library
neildhar Aug 28, 2021
013e623
Revert the Android specific max heap size GCConfig
Huxpro Sep 3, 2021
2133172
Bump Hermes npm to 0.9.0
Huxpro Sep 3, 2021
c282c2d
Bump Hermes pod to 0.9.0
Huxpro Sep 3, 2021
c97015d
Update Podfile.lock
Sep 9, 2021
614a370
[0.66.0-rc.2] Bump version numbers
Sep 10, 2021
8b6d7fd
Link RCT-Folly against libc++abi
fkgozali Sep 17, 2021
dc453da
Update rn-tester Podfile.lock to prepare for 0.66.0-rc.3
fkgozali Sep 17, 2021
ab50c6e
[0.66.0-rc.3] Bump version numbers
fkgozali Sep 17, 2021
6b014e8
Don’t hard-code CocoaPods’s sandbox path (#32243)
sonicdoe Sep 21, 2021
9967318
OSS: update Podfile.lock automatically when bumping release version
fkgozali Sep 23, 2021
ef280d6
[LOCAL] Port react-native-codegen new .gitignore from main
fkgozali Sep 24, 2021
a6a983d
OSS: bump-oss-version -- update Podfile.lock later in the flow
fkgozali Sep 24, 2021
d47fd4a
[0.66.0-rc.4] Bump version numbers
fkgozali Sep 24, 2021
09a21f0
[0.66.0] Bump version numbers
Oct 1, 2021
00625b6
Merge tag 'v0.66.0' into fb66merge
HeyImChris Oct 20, 2021
db5d361
Merge branch 'master' into fb66merge
HeyImChris Oct 21, 2021
ce6c252
get ios building
HeyImChris Oct 21, 2021
3cb82fe
remove isSelected and selectedRowIndexPath for now
HeyImChris Oct 21, 2021
fc2911c
add workspace
HeyImChris Nov 10, 2021
236c62e
Restore .eslintignore to what it looks like in react-native-macos
amgleitman Nov 10, 2021
aba766e
Fix easy eslint errors as per the `--fix` option
amgleitman Nov 10, 2021
67cbe7e
Fix the rest of the yarn lint errors
amgleitman Nov 10, 2021
3520159
Update yarn.lock
amgleitman Nov 10, 2021
a1afb19
Merge pull request #3 from amgleitman/amgleitman/fb66merge-eslint-fixes
HeyImChris Nov 10, 2021
586bb5e
Add AccessibilityRole back to Button.js
amgleitman Nov 11, 2021
58c8412
Fix flow issues on iOS and macOS
amgleitman Nov 15, 2021
e399059
Merge pull request #4 from amgleitman/amgleitman/fb66merge-flow-fixes
HeyImChris Nov 16, 2021
b3f4f66
Initialize state in VirtualizedSectionList
amgleitman Nov 16, 2021
5904ee6
Update snapshots
amgleitman Nov 16, 2021
b5df753
Fix parseLogBoxLog tests to include native code blocks
amgleitman Nov 16, 2021
c5d4fe8
Merge pull request #5 from amgleitman/amgleitman/fb66merge-flow-fixes
HeyImChris Nov 17, 2021
8c0c3ea
Specify state explicitly for DisplayOptionsStatusExample
amgleitman Nov 17, 2021
635a0e1
Disable "Text with custom accessibility actions" example
amgleitman Nov 18, 2021
085befd
android
HeyImChris Nov 18, 2021
85debff
Merge branch 'master' of https://github.com/microsoft/react-native-macos
HeyImChris Nov 19, 2021
b1eaf18
Fix AnimatedMock spring to handle animated configs
amgleitman Nov 19, 2021
b9ac73d
Merge pull request #6 from amgleitman/amgleitman/fb66merge-more-fixes
HeyImChris Nov 29, 2021
ba5b965
Fix most compile issues for macOS
amgleitman Dec 7, 2021
e3abc80
Fix post_install sed script
amgleitman Dec 8, 2021
4866442
Changes that allow RNTester to launch on macOS
amgleitman Dec 9, 2021
d2caebd
Fix isHighContrastEnabled on RNTester accessibility page
amgleitman Dec 10, 2021
f8e3166
Merge pull request #7 from amgleitman/amgleitman/fb66merge-macos-compile
HeyImChris Dec 14, 2021
a816edd
Merge branch 'fb66merge' into amgleitman/fb66-rntester-working
amgleitman Dec 15, 2021
d0a3821
Bump special targets in RNTester Podfile to iOS 11
amgleitman Dec 15, 2021
e7191ad
BorderExample: use a platform color that also exists on macOS
amgleitman Dec 15, 2021
d22aab1
Disable dev mode on ship builds (#888)
HeyImChris Nov 11, 2021
3167c6c
fix text fields on macOS
HeyImChris Dec 15, 2021
e75b222
add osx support
HeyImChris Dec 15, 2021
1c83fbd
image prop and scroll view build failures osx
HeyImChris Dec 15, 2021
bc09148
Merge branch 'fb66merge' into amgleitman/fb66-rntester-working
amgleitman Dec 15, 2021
d45345c
Fix yarn lint issues
amgleitman Dec 15, 2021
776bdc0
Update Podfile.lock
amgleitman Dec 15, 2021
e1effd8
Merge pull request #8 from amgleitman/amgleitman/fb66-rntester-working
HeyImChris Dec 15, 2021
45c39b7
endline changes
HeyImChris Dec 16, 2021
035a721
Get rid of macOS RedBox in LayoutEventsExample
amgleitman Jan 4, 2022
c54f0cb
fix: Apply proper accessibility role to images on macOS
amgleitman Jan 5, 2022
2e0f32c
Add another macOS GH#774 tag
amgleitman Jan 5, 2022
10c3f07
Merge pull request #9 from amgleitman/amgleitman/fb66-rntester-working
HeyImChris Jan 5, 2022
f98de97
Merge branch 'main' of https://github.com/microsoft/react-native-macos
HeyImChris Jan 6, 2022
cd7163e
Merge branch 'fb66merge' of https://github.com/HeyImChris/react-nativ…
HeyImChris Jan 10, 2022
8b43fe0
Merge branch 'main' into fb66merge
HeyImChris Jan 11, 2022
c0d8ff7
fix snapshot image test failure
HeyImChris Jan 11, 2022
42ddecc
upgrade ts to a compatible version
HeyImChris Jan 11, 2022
cea231d
bump podfile.lock
HeyImChris Jan 13, 2022
a90c149
Fix Android patches in fb66merge
amgleitman Jan 13, 2022
fd021e7
change cocoapods version
HeyImChris Jan 13, 2022
8332866
update internal cocoapods requirements
HeyImChris Jan 13, 2022
145b1ce
test increasing min deployable target
HeyImChris Jan 13, 2022
a2e1a05
min deployment error in CI, bump to 10.15 osx
HeyImChris Jan 13, 2022
669c1f1
Merge pull request #10 from amgleitman/amgleitman/fb66merge-fix-andro…
HeyImChris Jan 13, 2022
1abaeb4
fix typedef redefinition build error in folly
HeyImChris Jan 13, 2022
0a39af3
disable use_flipper in our templates
HeyImChris Jan 13, 2022
c09b6c5
disable USE_FRAMEWORKS for Flipper support
HeyImChris Jan 13, 2022
2a13045
Revert "disable USE_FRAMEWORKS for Flipper support"
HeyImChris Jan 13, 2022
2fbff75
disable post_install of flipper
HeyImChris Jan 13, 2022
ce57308
combine tempated macos post_install
HeyImChris Jan 14, 2022
ef64730
add generate-specs.sh
HeyImChris Jan 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allows to set individual (left,top,right,bottom) dotted/dashed borders (
facebook#29099)

Summary:
This issue:

fixes facebook#24224 fixes facebook#28695 fixes facebook#23651 fixes facebook#23475  fixes facebook#22256 fixes facebook#22226 fixes facebook#19234 fixes  facebook#18285  fixes facebook#17344 fixes facebook#17343 fixes facebook#17251 fixes facebook#12817 fixes facebook#12403 fixes facebook#11042 fixes facebook#9343 fixes facebook#8236 fixes facebook#8105 fixes facebook#7838 fixes facebook#6721 fixes facebook#5411 fixes facebook#3159 fixes facebook#2335 fixes facebook#840 fixes facebook#27133 fixes facebook#28695

Allows to set individual (left,top,right,bottom) dotted/dashed borders.

If a single border is specified and the borderStyle is dotted or dashed, each border will be drawn with moveTo and lineTo taking in consideration of the border style and thickness.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[Android] [Fixed] - Quickfix individual border style dotted or dashed rendering as solid

Pull Request resolved: facebook#29099

Test Plan:
**<details><summary>CLICK TO OPEN TESTS RESULTS</summary>**
<p>

| **AFTER** | **AFTER** |
|:-------------------------:|:-------------------------:|
| <img src="https://user-images.githubusercontent.com/24992535/84158300-05e05800-aa6c-11ea-96a3-40007b2ca611.png" width="300" height="" /> | <img src="https://user-images.githubusercontent.com/24992535/84158309-07aa1b80-aa6c-11ea-973b-51e8e68b5808.png"  width="300" height="" /> |

| **AFTER** | **AFTER** |
|:-------------------------:|:-------------------------:|
| <img src="https://user-images.githubusercontent.com/24992535/84158320-0d9ffc80-aa6c-11ea-9d7f-dfba49fbfe41.png" width="300" height="" /> | <img src="https://user-images.githubusercontent.com/24992535/84158334-11cc1a00-aa6c-11ea-8422-cd5b9384f391.png"  width="300" height="" /> |

| **AFTER** | **AFTER** |
|:-------------------------:|:-------------------------:|
| <img src="https://user-images.githubusercontent.com/24992535/84158556-4c35b700-aa6c-11ea-9a4d-eea791b3813a.png" width="300" height="" /> | <img src="https://user-images.githubusercontent.com/24992535/84158574-51930180-aa6c-11ea-8e84-526cfb168f49.png"  width="300" height="" /> |

| **AFTER** | **AFTER** |
|:-------------------------:|:-------------------------:|
| <img src="https://user-images.githubusercontent.com/24992535/84158586-55268880-aa6c-11ea-9540-51d79a8e4cb0.png" width="300" height="" /> | <img src="https://user-images.githubusercontent.com/24992535/84158601-5952a600-aa6c-11ea-82e7-85d54b858f1a.png"  width="300" height="" /> |

| **AFTER** | **AFTER** |
|:-------------------------:|:-------------------------:|
| <img src="https://user-images.githubusercontent.com/24992535/84158638-62dc0e00-aa6c-11ea-8765-ecba0d9d126f.png" width="300" height="" /> | <img src="https://user-images.githubusercontent.com/24992535/84158652-67a0c200-aa6c-11ea-8336-e6eb8aa52e96.png"  width="300" height="" /> |

| **AFTER** | **AFTER** |
|:-------------------------:|:-------------------------:|
| <img src="https://user-images.githubusercontent.com/24992535/84158690-738c8400-aa6c-11ea-9cf1-edec72d27cb7.png" width="300" height="" /> | <img src="https://user-images.githubusercontent.com/24992535/84158912-b6e6f280-aa6c-11ea-94a7-0ee0db685f38.png"  width="300" height="" /> |

</p>
</details>

Reviewed By: mdvacca

Differential Revision: D28688914

Pulled By: RSNara

fbshipit-source-id: 34781d63265dcf55e30f11c014e6b4a35d67dcbd
  • Loading branch information
fabOnReact authored and facebook-github-bot committed Aug 2, 2021
commit cb0e1d603aa4439a4d4804ad2987e4cb1f9bbf90
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ private enum BorderStyle {
private @Nullable Path mOuterClipPathForBorderRadius;
private @Nullable Path mPathForBorderRadiusOutline;
private @Nullable Path mPathForBorder;
private Path mPathForSingleBorder = new Path();
private @Nullable Path mCenterDrawPath;
private @Nullable RectF mInnerClipTempRectForBorderRadius;
private @Nullable RectF mOuterClipTempRectForBorderRadius;
Expand Down Expand Up @@ -968,6 +969,14 @@ private void updatePathEffect() {
mPaint.setPathEffect(mPathEffectForBorderStyle);
}

private void updatePathEffect(int borderWidth) {
PathEffect pathEffectForBorderStyle = null;
if (mBorderStyle != null) {
pathEffectForBorderStyle = BorderStyle.getPathEffect(mBorderStyle, borderWidth);
}
mPaint.setPathEffect(pathEffectForBorderStyle);
}

/** For rounded borders we use default "borderWidth" property. */
public float getFullBorderWidth() {
return (mBorderWidth != null && !YogaConstants.isUndefined(mBorderWidth.getRaw(Spacing.ALL)))
Expand Down Expand Up @@ -1083,28 +1092,50 @@ private void drawRectangularBackgroundWithBorders(Canvas canvas) {
colorTop,
colorRight,
colorBottom);

if (fastBorderColor != 0) {
if (Color.alpha(fastBorderColor) != 0) {
// Border color is not transparent.
int right = bounds.right;
int bottom = bounds.bottom;

mPaint.setColor(fastBorderColor);
mPaint.setStyle(Paint.Style.STROKE);
if (borderLeft > 0) {
int leftInset = left + borderLeft;
canvas.drawRect(left, top, leftInset, bottom - borderBottom, mPaint);
mPathForSingleBorder.reset();
int width = Math.round(borderWidth.left);
updatePathEffect(width);
mPaint.setStrokeWidth(width);
mPathForSingleBorder.moveTo(left, top - borderWidth.top / 2);
mPathForSingleBorder.lineTo(left, bottom + borderWidth.bottom / 2);
canvas.drawPath(mPathForSingleBorder, mPaint);
}
if (borderTop > 0) {
int topInset = top + borderTop;
canvas.drawRect(left + borderLeft, top, right, topInset, mPaint);
mPathForSingleBorder.reset();
int width = Math.round(borderWidth.top);
updatePathEffect(width);
mPaint.setStrokeWidth(width);
mPathForSingleBorder.moveTo(left, top);
mPathForSingleBorder.lineTo(right, top);
canvas.drawPath(mPathForSingleBorder, mPaint);
}
if (borderRight > 0) {
int rightInset = right - borderRight;
canvas.drawRect(rightInset, top + borderTop, right, bottom, mPaint);
mPathForSingleBorder.reset();
int width = Math.round(borderWidth.right);
updatePathEffect(width);
mPaint.setStrokeWidth(width);
mPathForSingleBorder.moveTo(right, top - borderWidth.top / 2);
mPathForSingleBorder.lineTo(right, bottom + borderWidth.bottom / 2);
canvas.drawPath(mPathForSingleBorder, mPaint);
}
if (borderBottom > 0) {
int bottomInset = bottom - borderBottom;
canvas.drawRect(left, bottomInset, right - borderRight, bottom, mPaint);
mPathForSingleBorder.reset();
int width = Math.round(borderWidth.bottom);
updatePathEffect(width);
mPaint.setStrokeWidth(width);
mPathForSingleBorder.moveTo(left, bottom);
mPathForSingleBorder.lineTo(right, bottom);
canvas.drawPath(mPathForSingleBorder, mPaint);
}
}
} else {
Expand Down
9 changes: 6 additions & 3 deletions packages/rn-tester/js/examples/Border/BorderExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const styles = StyleSheet.create({
border1: {
borderWidth: 10,
borderColor: 'brown',
borderStyle: 'dotted',
},
borderRadius: {
borderWidth: 10,
Expand All @@ -38,10 +39,10 @@ const styles = StyleSheet.create({
},
border3: {
borderColor: 'purple',
borderTopWidth: 10,
borderTopWidth: 7,
borderRightWidth: 20,
borderBottomWidth: 30,
borderLeftWidth: 40,
borderBottomWidth: 10,
borderLeftWidth: 5,
},
border4: {
borderTopWidth: 10,
Expand Down Expand Up @@ -99,12 +100,14 @@ const styles = StyleSheet.create({
},
border8Left: {
borderLeftWidth: 5,
borderStyle: 'dotted',
},
border8Bottom: {
borderBottomWidth: 5,
},
border8Right: {
borderRightWidth: 5,
borderStyle: 'dashed',
},
border9: {
borderWidth: 10,
Expand Down