| #
641d0767 |
| 03-Feb-2023 |
Evan Bacon <[email protected]> |
feat(html-elements): improve assertions (#21069)
# Why
- Temporary workaround for https://github.com/facebook/react/pull/22725
- Unwrapped text strings are very difficult to find and cause criti
feat(html-elements): improve assertions (#21069)
# Why
- Temporary workaround for https://github.com/facebook/react/pull/22725
- Unwrapped text strings are very difficult to find and cause critical
errors to occur. When using expo/html-elements, devs have a much higher
chance of accidentally making this mistake.
- `@expo/html-elements` is web-first React Native and therefore should
have first-class types and styles for `react-native-web`. This PR
injects a native wrapper to strip out web styles that aren't supported.
# How
When a text child appears in View, the child is replaced by a red view
with text indicating the string. A warning is also presented to attempt
to provide a stack trace (which mostly doesn't help).
# Test Plan
- Added unit tests for the expected functionality.
- I've been using this in my personal package `@bacons/react-views` for
a while and it hurts to go back.
<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin).
---------
Co-authored-by: Expo Bot <[email protected]>
show more ...
|
| #
f4a8f663 |
| 20-Jan-2023 |
Evan Bacon <[email protected]> |
feat(html-elements): added div and babel tests (#20867)
# Why
- The babel plugin should be tested.
- Div is a pretty common component. Even though this isn't perfect, most
issues are related to
feat(html-elements): added div and babel tests (#20867)
# Why
- The babel plugin should be tested.
- Div is a pretty common component. Even though this isn't perfect, most
issues are related to styling/Yoga. Yoga has some good strategies for
changing default styles in the future so I think we can lean on that for
migration.
show more ...
|
| #
e1bb5bdf |
| 17-Jan-2023 |
Kudo Chien <[email protected]> |
[2/3] upgrade react native 0.71 (#20832)
# Why
follow up #20799 for react-native 0.71 upgrade. this pr aims for jest upgrade and fix all broken tests.
close ENG-7192
# How
- upgrade packag
[2/3] upgrade react native 0.71 (#20832)
# Why
follow up #20799 for react-native 0.71 upgrade. this pr aims for jest upgrade and fix all broken tests.
close ENG-7192
# How
- upgrade packages
- `jest: ^26.0.24 -> ^29.2.1`
- `jest-watch-typeahead: 0.6.4 -> 2.2.1`
- `@types/jest: ^26.0.24 -> ^29.2.1`
- `babel-jest: ^26.6.3 -> ^29.2.1`
- `@jest/create-cache-key-function: ^27.0.1 -> ^29.2.1`
- `@babel/preset-env: ^7.12.9 -> ^7.14.0`
- `eslint: ^8.20.0 -> ^8.29.0`
- add `jest-environment-jsdom` because new jest does not include it by default
- [core] fix `SyntheticPlatformEmitter` type error. originally it refers to `react-native/Libraries/EventEmitter/RCTDeviceEventEmitter` internal file which has incorrect type setup in 0.71. we could use the `react-native.DeviceEventEmitter` instead.
- [expo-linking]: remove the deprecated `Linking.removeEventListener` (which is also removed from upstream)
- [firebase-recaptcha] remove broken web test because firebase ESM which is not supported by jest. this pr simply remove the test case because the package is deprecated.
- [jest-expo-enzyme] remove this package and move to [the archived repo](https://github.com/expo/jest-expo-enzyme). enzyme cannot upgrade to jest 29.
- remove `@types/react-native` and the versioned cli package check. because 0.71 ships the types directly.
- [ncl] workaround `@react-native-community/slider`, `@react-native-segmented-control/segmented-control`, and `@react-native-masked-view/masked-view` type errors in the `react-native-71-fix.d.ts`.
- for other details, please check the commit histories one by one.
# Test Plan
- ci passed
- for test-suite ios ci error, i've mentioned in #20799
show more ...
|
| #
9e302745 |
| 30-Oct-2022 |
Brent Vatne <[email protected]> |
[ems][jest-expo-enzyme] Deprecate the library and remove it from EMS (#19777)
|
| #
600afe4b |
| 09-Mar-2020 |
Evan Bacon <[email protected]> |
[html-elements] Fix Android font family (#7303)
* Fix Android font family
* fix build
|
| #
60ea71b8 |
| 14-Feb-2020 |
Evan Bacon <[email protected]> |
[html-elements] Update font sizes (#7044)
* Remove Small
* Update Text-test.tsx
|
| #
37e143d9 |
| 13-Feb-2020 |
Evan Bacon <[email protected]> |
[html-elements] Use Courier font for Code elements (#7040)
* Use Courier font for code elements
* Updated demo screen
|
| #
68675f3e |
| 12-Feb-2020 |
Evan Bacon <[email protected]> |
[html-elements] Update layout elements (#7027)
* Created new layout elements
* Updated docs
* Updated small size
* updated heading snapshots
* lint fix
* fix format
|
| #
55058f92 |
| 12-Feb-2020 |
Evan Bacon <[email protected]> |
Created @expo/html-elements (#6986)
* Created @expo/html-elements package
* Created Anchor element
* Created Article
* Created Header
* Created Main
* Created Section
* Created Foo
Created @expo/html-elements (#6986)
* Created @expo/html-elements package
* Created Anchor element
* Created Article
* Created Header
* Created Main
* Created Section
* Created Footer
* Created P
* Created B
* Created Strong
* Created Strike
* Created I
* Created Br
* Created Hr
* Created Code
* Created Table elements
* Updated text elements
* Updated Hr
* Created Nav
* Created Small
* Created Lists
* Created Mark
* Create Tfooter
* Update package.json
* Updated docs
* Update README.md
* Update README.md
* Update README.md
* Update packages/html-elements/README.md
Co-Authored-By: Brent Vatne <[email protected]>
* extract target from anchor
* Strike -> Del
* Updated headings docs
* Update README.md
* simplify ts method
* removed ts-ignores
* Ul => UL
* Ol => OL
* Li => LI
* Hr => HR
* Thead => THead
* Tbody => TBody
* Tfoot => TFoot
* Td => TD
* Br => BR
* Tr => TR
* Th => TH
* Em => EM
* Fix NCL screen
* Added E2E tests
* Updated .npmignore to remove tests, snapshots, and jest tsconfig
* Created Q and BlockQuote
* pixels -> value
* Added audio tag
* Update README.md
* update build files
* fix view and text styles
* Created Time
* Update README.md
* Update README.md
* updated tests
* Remove unused tests
* Created Pre
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* internal links
* unify blocks
* Update README.md
Co-authored-by: Brent Vatne <[email protected]>
show more ...
|