Gathering detailed insights and metrics for react-native-basic-plus
Gathering detailed insights and metrics for react-native-basic-plus
Gathering detailed insights and metrics for react-native-basic-plus
Gathering detailed insights and metrics for react-native-basic-plus
Make it easy to use Text and View on React Native
npm install react-native-basic-plus
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
51 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Apr 14, 2021
Latest Version
0.0.12
Package Id
react-native-basic-plus@0.0.12
Unpacked Size
14.37 kB
Size
5.02 kB
File Count
21
NPM Version
6.14.7
Node Version
14.9.0
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
2
Make it easy to use Text and View on React Native, and support Dark Mode.
yarn add react-native-basic-plus
1import React from 'react'; 2import { 3 ThemeStateProvider, 4 Container, 5 Text 6} from 'react-native-basic-plus'; 7 8const App = () => { 9 return ( 10 <ThemeStateProvider> 11 <Example /> 12 </ThemeStateProvider> 13 ); 14}; 15 16const Example = () => { return ( 17 <Container> 18 <Text largeTitle semibold customColor={{light: '#000', dark: '#fff'}}>LargeTitle 巨大的标题加粗</Text> 19 <Text size={30} textColor1 bold>Title1 标题测试</Text> 20 <Text size={24} textColor2 medium>Title2 标题测试</Text> 21 <Text size={20} textColor3>Title3 标题测试</Text> 22 </Container> 23 ) 24} 25 26 27export default App; 28
Container
name | description | required | type |
---|---|---|---|
customColor | custom backgroundColor | false | string |
Text
name | description | required | type |
---|---|---|---|
color | custom backgroundColor | false | string |
size | fontSize | false | number |
textColor1 | font color | false | boolean |
textColor2 | font color | false | boolean |
textColor3 | font color | false | boolean |
textColor4 | font color | false | boolean |
useTheme
1import React, { useMemo } from 'react'; 2import { useTheme } from 'react-native-basic-plus'; 3 4function Component() { 5 const { textColors, bgColors, othersColor, isDarkMode, theme } = useTheme(); 6 7 // do something theme style code 8 const containerStyle = useMemo(() => ({ 9 backgroundColor: bgColors.bgColor1[theme] 10 }), [theme]) 11 12 return ( 13 <View style={containerStyle}> 14 ... 15 <View/> 16 ) 17}
1 2import { ThemeStateProvider } from 'react-native-basic-plus'; 3 4function Component() { 5 const textColors: TextColorProps = { ... } 6 const bgColors: BgColorProps = { ... } 7 const othersColor: OthersColorProps = { ... } 8 9 return ( 10 <ThemeStateProvider 11 textColors={textColors} 12 bgColors={bgColors} 13 othersColor={othersColor}> 14 ... 15 </ThemeStateProvider> 16 ) 17}
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
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