![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
react-native-box-lite
Advanced tools
Box lite for React Native, It's good for web developer to move to mobile developer
$ npm install react-native-box-lite
To use suggestion for className, you need to install extension react-native-components-intellisense in your vscode.
import {Box, Button, Text} from 'react-native-box-lite';
import {View} from 'react-native';
const test =()=>{
const containerStyle = useClassName({
className: "flex-1 bg-white p-4"
})
const containerHeaderStyle = useClassName({
className: "bg-black p-4 h-10 w-screen"
})
return (
<View style={containerStyles}>
<Box style={containerHeaderStyle}>
<Text className="text-white font-bold text-xl">
Title Demo rn component
</Text>
</Box>
<Box className="bg-amber-200 h-12 w-12">
<Text className="text-white font-bold text-md">
Demo rn component
</Text>
</Box>
<Button title="Demo Button Default" />
<Button varian="outline" title="Demo Button Outline" />
<Button varian="primary" title="Demo Button Primary" />
<View>
)
}
[]
as w-[200]
=> width: 200[${horizontalScale(30)}]
import {Box, Text} from 'react-native-box-lite';
const customStyles = () => {
return (
<Box>
<Box className="w-[200] h-[350] bg-white center" />
<Text className="text-[22] text-green-500 font-bold">
Demo rn component
</Text>
</Box>
);
};
Type class Gap: support react-native version >= 0.71
Prop | Description | Default |
---|---|---|
className | class of component as:w-1 h-1 | null |
scaleScreen | Active use scale by width of screen | true |
Prop | Description | Default |
---|---|---|
checked | state checked | false |
value | state parameter when event press | null |
label | label of checkbox | null |
color | properties checked and default | checked: blue , default: gray |
size | size of checkbox | 20 |
sizeChildren | size of state checked if has size && (!sizeChildren) => size/2 | 10 |
iconChecked | custom icon checked, type: ImageSourcePropType | null |
renderIconChecked | function render icon checked | null |
className | class styles of container | null |
classNameParent | class styles of Parent | null |
classNameChildren | class styles of Children | null |
classNameLabel | class styles of Label | null |
isDebounce | Active debounce when event press | false |
delayDebounce | time debounce of debounce | 500 |
import {Checkbox} from 'react-native-box-lite';
<Checkbox label="Label" />
<Checkbox checked label="Checked" />
<Checkbox
size={28}
checked
color={{checked: 'green'}}
label="Custom color and size"
/>
<Checkbox
size={28}
checked
iconChecked={Add}
color={{checked: 'green'}}
label="Custom icon"
/>
Prop | Description | Default |
---|---|---|
checked | state checked | false |
value | state parameter when press | null |
label | label of radio | null |
color | properties checked and default | checked: blue ,default: gray |
size | size of radio | 20 |
sizeChildren | size of state checked if has size && (!sizeChildren) => size/2 | 8 |
className | class styles of container | null |
classNameParent | class styles of Parent | null |
classNameChildren | class styles of Children | null |
classNameLabel | class styles of Label | null |
isDebounce | Active debounce when press | false |
delayDebounce | time debounce of debounce | 500 |
import {RadioButton} from 'react-native-box-lite';
<RadioButton label="Label" />
<RadioButton checked label="Checked" />
<RadioButton
size={28}
checked
color={{checked: 'green'}}
label="Custom color and size"
/>
Prop | Description | Default |
---|---|---|
className | class styles of component | null |
scaleScreen | Active use scale by width of screen | true |
rest | extents from ViewProps |
import {Box} from 'react-native-box-lite';
<Box className="row gap-2">
<Box className="w-10 h-10 bg-red-400" />
<Box className="w-10 h-10 bg-green-400" />
<Box className="w-10 h-10 bg-yellow-400" />
</Box>;
Prop | Description | Default |
---|---|---|
varian | type of primary, outline | null |
className | class styles of component | null |
scaleScreen | Active use scale by width of screen | true |
isDebounce | Active debounce when press | false |
delayDebounce | time debounce of debounce | 500 |
rest | extents from TouchableOpacityProps |
import {Button} from 'react-native-box-lite';
<Button title="Demo Button Default" />
<Button varian="outline" title="Demo Button Outline" />
<Button varian="primary" title="Demo Button Primary" />
Prop | Description | Default |
---|---|---|
className | class styles of component | null |
scaleScreen | Active use scale by width of screen | true |
rest | extents from TextProps |
import {Text} from 'react-native-box-lite';
<Text className="font-bold text-xl text-black">Text xl</Text>
<Text className="font-normal text-xl text-black">Font normal</Text>
function | Description | parameter |
---|---|---|
horizontalScale | scale by ratio width device default guidelineBaseWidth = 375 | number |
verticalScale | scale by ratio height device default guidelineBaseHeight = 812 | number |
moderateScale | scale by ratio width and height | number |
fontSize | scale by ratio width and height | number |
FAQs
Box lite for React Native, It's good for web developer to move to mobile developer
The npm package react-native-box-lite receives a total of 7 weekly downloads. As such, react-native-box-lite popularity was classified as not popular.
We found that react-native-box-lite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.