You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A function to create conditional React Native props for a specific TNode.
277
+
* A function to create React Native props from a {@link TNode} grouped by
278
+
* native components.
279
+
*
257
280
* Those props will be deep-merged over the pre-generated props. You can
258
281
* preserve some of the pre-generated props since you receive them as second
259
282
* argument.
260
283
*
261
-
* **Merge strategy** (rightmost overrides leftmost): _static props from model_,
262
-
* _auto-generated props from attributes_, _props returned by this function_.
284
+
* **Merge strategy** (latest overrides former):
285
+
*
286
+
* 1. props from `reactNativeProps`,
287
+
* 2. auto-generated props from attributes
288
+
* 3. props returned by this function
263
289
*
264
-
* @param tnode - The TNode for which to create React Native props.
265
-
* @param preGeneratedProps - The props that were pre-generated for the TNode based on attributes (style, aria-* ...) and {@link HTMLELementModel.reactNativeProps}.
290
+
* @param tnode - The {@link TNode} for which to create React Native props.
291
+
* @param preGeneratedProps - The props that were pre-generated for the {@link TNode}
292
+
* based on attributes (e.g. aria-label ...) and
293
+
* {@link ElementModelBase.reactNativeProps}.
294
+
* @returns React Native props grouped by native components (see
295
+
* {@link ReactNativePropsDefinitions}). Those props will be passed to the
296
+
* underlying native component at render time.
297
+
*
298
+
* @example
299
+
*
300
+
* ```ts
301
+
* import { defaultHTMLElementModels } from "react-native-render-html";
0 commit comments