Skip to content

chore: update readme#175

Merged
marklawlor merged 1 commit intomainfrom
09-08-chore_update_readme
Sep 8, 2025
Merged

chore: update readme#175
marklawlor merged 1 commit intomainfrom
09-08-chore_update_readme

Conversation

@marklawlor
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings September 8, 2025 06:14
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes and expands the README documentation for react-native-css, providing clearer setup instructions and comprehensive usage examples. The changes improve the organization of bundler setup instructions and add extensive documentation for CSS variables and optimizations.

  • Restructured Metro setup section to separate Expo and non-Expo projects
  • Added new usage examples including styled components and updated hook examples
  • Added comprehensive sections on CSS variables and performance optimizations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +138 to +139
const Box = useCssElement(View, {
className: "box",
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Box component uses className 'box' but previously used 'container' which was incorrect. This change fixes the inconsistency with the expected usage pattern.

Copilot uses AI. Check for mistakes.
return (
<MyView className="container">
<MyView className="box" />
</View>
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 120 should use </MyView> closing tag instead of </View> to match the opening <MyView> tag on line 118.

Suggested change
</View>
</MyView>

Copilot uses AI. Check for mistakes.
#### `useNativeCssStyle`

If you just require the style object, you can use the `useNativeCssStyle` hook:
If you just require the style object, you can use the `useNativeCssStyle` hook
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing colon at the end of the sentence. Should be 'you can use the useNativeCssStyle hook:'

Suggested change
If you just require the style object, you can use the `useNativeCssStyle` hook
If you just require the style object, you can use the `useNativeCssStyle` hook:

Copilot uses AI. Check for mistakes.
@marklawlor marklawlor merged commit 8c2d0a1 into main Sep 8, 2025
7 checks passed
Copy link
Copy Markdown
Contributor Author

Merge activity

@marklawlor marklawlor deleted the 09-08-chore_update_readme branch September 8, 2025 06:20
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.

2 participants