forked from facebook/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 327
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
sync #920
Merged
Merged
sync #920
Conversation
This file contains 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
Reading or writing to a ref in render is a [rule of React violation](https://react.dev/reference/react/useRef). This PR updates the docs for animated to use the `useAnimatedValue` hook instead, which does use a ref under the hood but isolates the rule of React violation to just that hook. This allows users that follow code examples for animated to have their components and hooks be compilable by React Compiler. This hook was added in [0.71](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#:~:text=Introduce%20useAnimatedValue%20hook%20to%20make%20it%20easier%20working%20with%20Animated.Values%20in%20function%20components.%20(e22217fe8b%20by%20%40fabriziocucci)) so I'm also updating versioned docs from 0.71 onwards.
I missed a few examples in #4200 where the example expo sandboxes were broken due to useAnimatedValue not being exported on web.
* Update spelling and formatting for codegen docs * Update what-is-codegen * Update using-codegen
* Update cache control docs * Update anchor link for cache control
* Update React Logo in Manifest Icons * Also, update OpenGraph image.
* Update showcase to support quest links * Add Instagram and Facebook quest links * Remove extra check on app links * Fix href * Remove extra spaces for linter
* Replace Meta Quest showcase with Meta Horizon * Fix image
Co-authored-by: Simek <[email protected]>
Co-authored-by: Bartosz Kaszubowski <[email protected]> Co-authored-by: Nicola Corti <[email protected]>
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* doc(image): fix fresco version. * Update image.md * Update image.md
* Update Android profiling instructions I couldn't get any of this to work last time I tried. I assumed the entire page is completely broken and outdated. Turns out, all of it is still relevant, it's just recommending tools that haven't worked for many years. This changes the recommendation to tools that actually work. * Update profiling.md * Update profiling.md * Update profiling.md * Update profiling.md * Update profiling.md
fix a few spelling mistakes
… new architecture (#4277) * docs/measureLayout-obsolete-with-native-node-handler * (docs) - measureLayout obsolete note for 0.76 * Update direct-manipulation.md for version 0.76
keyExtractor in sectionlist checks for item.key first. If it is not present it checks for item.id. If item.id is not present then it falls back to index.
remove useEffect/componentDidMount
* Update _getting-started-macos-android.md docs: Open a folder in Finder To open a folder in finder the right command is open * Update _getting-started-macos-android.md docs: Open a folder in Finder To open a folder in finder the right command is open
* updates all TurboReactPackage to BaseReactPackage * Removes package-lock.json This reverts commit 08fe650. --------- Co-authored-by: Ron Radtke <[email protected]>
The parameters of the `MeasureOnSuccessCallback` are spread out across `x`, `y`, `width`, `height`, etc, instead of being in a variable called `measurements`. I've updated to the code example to reflect that.
This text appears to be referencing a class component that uses state to store the animated value. The example it is referencing is using function components, and the animated value is not state.
…4074) Co-authored-by: Patryk [C] Fryda <[email protected]>
* refactor: migrate JavaScript files to TypeScript and update configurations * refactor: update import statements to use single quotes and enhance linting configurations * refactor: update ESLint configuration to use TypeScript parser and convert PrismTheme to ES module export * refactor: update lint:format script to include JSX and TypeScript file extensions * refactor: update prettier script to include JSX and TypeScript file extensions * refactor: update TypeScript configurations and improve type annotations in blog components * refactor: remove broken hover effect from clean button in custom theme styles * refactor: fix metadata usage in DocsRating and improve TypeScript types in various components * refactor: adjust TypeScript type declaration for global `ga` function in DocsRating * refactor: simplify Section component props using React.PropsWithChildren * refactor: add TypeScript types for Google Analytics and clean up global declaration in DocsRating * refactor: enhance TypeScript types for user authentication and streamline related components * refactor: update Prettier commands in package.json for improved file matching * refactor: update Prettier command in package.json for improved TypeScript file matching * refactor: update Prettier commands in package.json for improved file matching * refactor: update Prettier command for improved file matching and standardize package versions * set json extension on prettier config file
…ance by 92% (#4392) * Comment out the remark-lint plugin configuration in .remarkrc.mjs * Update remark-cli to version 12.0.1 and comment out lint plugin configuration
…omponents for 0.77 (#4389)
✅ Deploy Preview for reactnativecn ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.