-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
[6.x] 🚀 Welcoming the Foundry release! #430
Comments
For some reason, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
EDIT: Use
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
For those of you who are interested in CSS counter styles (roman, arabic...), good news are reported here! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi! Thanks for the great job! not sure where to open bugs regarding Foundry issues, but I've tried to test the RTL with 6.0.24-alpha and it's not 100%,
HTML Source:
|
@nadav2051 It's totally appropriate to comment in this thread for Foundry bug reports! I however prefer snacks as it's very fast to reproduce. Also, it would be nice to add in which platform the bug appears. On my end, I didn't manage to reproduce the RTL issue neither on Android (10), nor on iOS (14.4). See the repro I used here: https://snack.expo.io/@jsamr/rnrh-alpha24-rtl-repro As per the centering issue, worth investigating. I'll take a look. |
Solved it with this. I think it is related to react-native-web coming from expo. |
@castalonirenz |
@jsamr Hi, only the attributes ref is being get from the props. How can i get the text that has been press by the user? |
@castalonirenz Not an obvious solution at the moment, although we could pass the alpha.25import { getText } from "domutils";
const domVisitors = {
onElement(element) {
if (element.tagName === "a") {
element.attributes["data-text"] = getText(element);
}
},
}; alpha.24 and belowimport { getText, isTag } from "domutils";
function alterDOMNode(node) {
if (isTag(node) && node.tagName === "a") {
node.attributes["data-text"] = getText(node);
}
} Now you will have a |
i will try this one and will give you an update in the next day. thanks for the reply appreciate it! |
this is working see my screenshot |
Is there anyway to implement numberOfLines in HTML? @jsamr thanks in advanced |
@nadav2051 Regarding the centering issue, there is unfortunately nothing I can do since |
Hi everyone! Good news, The Beta is out! Check this ticket. |
Foundry Status
Check the PR!
Hello community! I have been working on the new "Foundry" release for a while now, and I have just published a demo on expo, "Foundry Playground", where you can experiment with the new engine and its features. Please give us feedback!
Testing Foundry Playground
Trying Foundry
From Scratch
Be careful, a lot of breaking changes! A compat module will be released to ease the transition.
Take a look at how to use the new renderer API here: #434 (comment) (section "Renderer API") or take inspiration from the demo snippets.
From the Playground
Clone
Clone this repository, "dev/foundry" branch:
Install
Build
Start the Playground App
Test HTML Snippets on your own!
Play with demo/snippets/test.tsx and change the
html
variable.A New Render Engine and CSS Processor
The new release should be significantly more reliable regarding styles and compliance with CSS / HTML standards. I have extracted two packages for this purpose:
@native-html/css-processor
, which handles all the logic of translating CSS styles into native styles ;@native-html/transient-render-engine
, which implements RFC002 and is in charge of creating a data structure ready for rendering.Both packages are available in the
@native-html/core
project monorepo. These packages are heavily tested against standards.Features Highlight
See #434 (comment)
Demo
In the demo app, you can toggle the legacy (5.x) vs Foundry (6.x) modes with the L button below. You can inspect the HTML source, and even the Transient Render Tree structure. Try out the demo here.
And a few extra screenshots
Progress
Check the "Remaining Work" section here: #434
Credits
Kudos to Expensify company which has hired me to work on the white space collapsing challenge, without which I would not have been able to commit full bandwidth those last 2 weeks! A great gift to the Open Source community. If you are an expert React Native contractor, they might have work for you (reactnative [at] expensify.com).
The text was updated successfully, but these errors were encountered: