这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@flexbox
Copy link
Collaborator

@flexbox flexbox commented Feb 5, 2025

Description

basic render function uses a new api with screen.query

https://callstack.github.io/react-native-testing-library/docs/api/render

The modern and recommended way of accessing queries is to use the screen object exported by the @testing-library/react-native package. This object will contain methods of all available queries bound to the most recently rendered UI.

Checklist

  • README.md and other relevant documentation has been updated with my changes
  • I have manually tested this, including by generating a new app locally (see docs).

CleanShot 2025-02-05 at 16 09 50

@flexbox flexbox merged commit 5ea9c7a into master Feb 20, 2025
1 check passed
@flexbox flexbox deleted the fix/rntl-new-api branch February 20, 2025 08:38
@infinitered-circleci
Copy link
Collaborator

🎉 This PR is included in version 10.1.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants