Gathering detailed insights and metrics for @fluentui-react-native/merge-props
Gathering detailed insights and metrics for @fluentui-react-native/merge-props
Gathering detailed insights and metrics for @fluentui-react-native/merge-props
Gathering detailed insights and metrics for @fluentui-react-native/merge-props
A react-native component library that implements the Fluent Design System.
npm install @fluentui-react-native/merge-props
Typescript
Module System
Node Version
NPM Version
TypeScript (89.21%)
JavaScript (6.8%)
Objective-C (1.52%)
Swift (0.89%)
C++ (0.81%)
Ruby (0.25%)
Kotlin (0.24%)
PowerShell (0.18%)
Shell (0.08%)
C (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,371 Stars
4,665 Commits
166 Forks
44 Watchers
53 Branches
10,000 Contributors
Updated on Jul 15, 2025
Latest Version
0.9.4
Package Id
@fluentui-react-native/merge-props@0.9.4
Unpacked Size
67.99 kB
Size
13.19 kB
File Count
52
NPM Version
10.9.2
Node Version
22.17.0
Published on
Jul 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Utilities for merging styles and props (which contain styles)
The mergeProps
routine handles merging props together. Generally this is a standard per property merge identical to the behavior of Object.assign
with the following two exceptions:
props.style
will be merged using mergeStyle
above, including caching the resolved stylesprops.className
will be joined together using spaces as a delimiter.Styles are defined using the standard react-native pattern and will be merged in a way that maintains object identity where possible.
This is a copy of the StyleProp definition from react-native
. This is copied primarily in the case where it is used in web code where adding a dependency on the react-native
package itself is not desireable.
The StyleProp pattern itself is allows a style to be provided as a style or a recursive array of styles. So the following pattern is allowed:
1props = { 2 style: [{ ...style1 }, [{ ...style2 }, { ...style3 }, [{ ...style4 }]], { ...style5 }], 3};
In this model merging styles can be effectively deferred by the following:
1const styleToMerge = { ...values }; 2props.style = [props.style, styleToMerge];
This routine merges one or more react-native styles together. The inputs are styles in the StyleProp
format referenced above. The various input styles will be flattened and merged together to produce a single non-flattened output style.
1function mergeStyles<T>(...styles: StyleProp<T>[]): T;
This routine has a built-in caching layer that will attempt to ensure that object identity remains consistent. This means that style A + style B, where the references to A and B are the same, will always produce object C, where the reference will also be the same.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
1 existing vulnerabilities detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
binaries present in source code
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More