React Native Render Html Versions Save

iOS/Android pure javascript react-native component that renders your HTML into 100% native views

v6.4.0

1 year ago

6.4.0 (2022-12-23)

Features

  • add switchProp testID value to nativeProps testID attribute (#574) (299b852)
  • move config for 'img' and 'a' into named interface (2bd0ba1)

v6.3.4

2 years ago

6.3.4 (2022-01-24)

Bug Fixes

  • link press on Android doesn't work (1a429f4), closes #546

v6.3.3

2 years ago

6.3.3 (2022-01-11)

v6.3.2

2 years ago

6.3.2 (2022-01-11)

v6.3.1

2 years ago

6.3.1 (2021-12-03)

Bug Fixes

  • bold style not applied to <b> tags (7bd5045), closes #539
  • wrong prop reference in warning message (e03b0ac), closes #541

v6.3.0

2 years ago

6.3.0 (2021-11-03)

If you encounter any issue while upgrading to v6.3.0, comment in this thread.

Bug Fixes

  • provideEmbeddedHeaders results in failing fetch for img (5488259), closes #533

Features

  • pass TNodeChildrenRenderer as a prop to custom renderers (9dd2bf1)

v6.2.0

2 years ago

6.2.0 (2021-10-23)

This release is focused on accessibility! Moreover, it empowers model-based custom rendering which can now define props passed to Text and View elements of renderers. Check out our blog post for a full dive into this release features.

Bug Fixes

  • inaccurate typing for HTMLElementModelRecord (bd5dfa6)
  • pass borderless prop to custom GenericPressable (f06af7a)
  • never assume the definition of __DEV__ in the global scope (f9bb9e9)
  • a11y: anchors should not be set with a11y role "link" when empty href (dd988fc)
  • a11y: anchors are not accessible anymore when href is empty or absent (4e1f2f4)

Features

  • new getNativePropsForTnode util method (d983d0d)
  • css: support user-select CSS property (8442b2f)
  • a11y: support aria-label and aria-role HTML attributes (2b27f00)
  • a11y: add accessibilityRole="header" to headings elements (h1...h6) (1c79bc3)
  • new reactNativeProps and getReactNativeProps in HTMLElementModel, this little change gives model-based custom rendering considerably more leverage. (4ee1646)
  • deprecate getUADerivedStyleFromAttributes in favor of getMixedUAStyles in HTMLElementModel, which allows access to the underlying TNode and again empowers model-based custom rendering.
  • a11y: whatwg-compliant accessibility for images (7fc2907)
  • a11y: custom renderers passed onPress prop now have a11y roles (11723f0)
  • a11y: support aria-role="search" and aria-role="presentation" attributes (c552fe4)
  • allow HTMLElementModel.extend to take a merge function (9b3a007)
  • support onPress from element models native props (7dc5577)

v6.2.0-alpha.3

2 years ago

6.2.0-alpha.3 (2021-10-20)

Bug Fixes

  • pass borderless prop to custom GenericPressable (f06af7a)
  • select onPress according to announced merging specifications (8a88457)

Features

  • allow HTMLElementModel.extend to take a merge function (9b3a007)
  • support onPress from element models native props (7dc5577)

v6.2.0-alpha.2

2 years ago

6.2.0-alpha.2 (2021-10-13)

Bug Fixes

  • never assume the definition of __DEV__ in the global scope (f9bb9e9)

v6.2.0-alpha.1

2 years ago

6.2.0-alpha.1 (2021-09-11)

Bug Fixes

  • a11y: anchors should not be set with a11y role "link" when empty href (dd988fc)
  • a11y: set accessibilityLabel for headings (h1..h6) to bypass RN limitation (bc37d88)

Features

  • new getNativePropsForTnode util method (d983d0d)
  • a11y: custom renderers passed onPress prop now have a11y roles (11723f0)
  • a11y: support aria-role="search" and aria-role="presentation" attributes (c552fe4)