-
Notifications
You must be signed in to change notification settings - Fork 296
Update example app to React Native 0.70 RC #408
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
Closed
Closed
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
1ed4402
Update podspec file for fabric
okwasniewski 51ca37e
Define codegen spec & move import to separate file
okwasniewski b86cf6c
Add codegenConfig in package.json
okwasniewski 4f8671d
Update podspec to detect .mm files
okwasniewski 00d9a79
Change spec types to floats
okwasniewski 1c40598
Implement fabric component with props updating
okwasniewski c7a4e23
Re-order functions, add accessibilityIncrements prop
okwasniewski 8dfb795
Clean up imports, remove comment
okwasniewski 8946e51
Sort out props updating, remove unused functions
okwasniewski 5e6f348
Add event handling
okwasniewski c93b119
Add tapToSeek implementation
okwasniewski 1ae3f1d
Fix tapToSeek
okwasniewski 3ab0013
Handle images using bridge
okwasniewski 8195867
Add missing typedef
okwasniewski e647c95
Verify the build for new arch with GH Actions
BartoszKlonowski bc90c77
Save new-arch Pods under new-arch cache key
BartoszKlonowski e8b2a6c
Use Podfile.lock with old arch and regenerate for new one
BartoszKlonowski c5c2b80
Correct path for new arch Podfile.lock creation
BartoszKlonowski d258a90
Disable flipper in Podfile
okwasniewski dc0988a
Install pods with new arch flag
okwasniewski 8574ae6
Fix tapToSeek on iOS
okwasniewski 62e5e46
Allow value property to be controlled
okwasniewski 9a35cb8
Generate project.pbxproj for new arch
okwasniewski ad2f640
Separate npm & pods step in CI
okwasniewski e6531fc
Change step names, fix cache keys
okwasniewski 190454a
Remove pods cache
okwasniewski 22aa190
Run npm install if cache was not found
okwasniewski e2d87ec
Run build using xcodebuild
okwasniewski 9bfb6eb
Fix: Pods-related error after using Pods from cache (#407)
BartoszKlonowski 4193daf
Remove explicit folly version, default to old arch
okwasniewski 9af9061
Add clean scripts in example for codegen cleanup
okwasniewski 1ae1cda
Change CI step names
okwasniewski 0c7b483
Configure build.gradle
okwasniewski c272d87
Update libraryName on android
okwasniewski fbdf661
Create ReactSlider shared implementation
okwasniewski 87051b0
Split implementations into oldarch and newarch
okwasniewski e685a43
Dispatch events
okwasniewski 0bd7e7b
Cleanup eventDispatcher
okwasniewski 3ed2e9b
Make oldarch implementation use shared code
okwasniewski 1f58ce8
Add defaults to js spec
okwasniewski 06304c9
Clean up newarch ReactSliderManager
okwasniewski cf24a40
Reorder props to fix disabled state
okwasniewski 7e12d78
Update example app
okwasniewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,4 +63,4 @@ untyped-import | |
| untyped-type-import | ||
|
|
||
| [version] | ||
| ^0.176.3 | ||
| ^0.182.0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
Why passing shared pointer as a reference? This removes the idea of a pointer being actually shared.
Making a copy allows this smart pointer to do it's job of sharing the pointer.
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.
It's a part of upgrade process for RN 0.70: https://react-native-community.github.io/upgrade-helper/?from=0.69.1&to=0.70.0-rc.1
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.
Well, the idea of how shared pointer works is that each time new copy is created, the internal counter of copies of this shared pointer is increased, so the smart pointer can manage the allocated space for example: when to free the memory. If we pass the shared pointer as a reference, we are not increasing it and work on a direct object of a copy that was passed to that method. So why having it a shared pointer in the first place then?
Consider the above a hint, please, but I'm eager to "check" if the example app will work with a new architecture with having it still passed by a copy, though.
I see it's a part of official migration guidence, Don't get me wrong, my point is: if there's any reason behind that line in original guide other than "you should use const reference wherever possible" then I'm happy to know and learn.