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

sync #920

Merged
merged 63 commits into from
Dec 15, 2024
Merged

sync #920

merged 63 commits into from
Dec 15, 2024

Conversation

sunnylqm
Copy link

No description provided.

poteto and others added 30 commits October 30, 2024 12:39
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: 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
samtsai and others added 28 commits November 23, 2024 13:06
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.
* 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
@sunnylqm sunnylqm merged commit a642204 into reactnativecn:production Dec 15, 2024
Copy link

netlify bot commented Dec 15, 2024

Deploy Preview for reactnativecn ready!

Name Link
🔨 Latest commit 035b24d
🔍 Latest deploy log https://app.netlify.com/sites/reactnativecn/deploys/675e5e0aa3567100086e988a
😎 Deploy Preview https://deploy-preview-920--reactnativecn.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.