![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-uix
Advanced tools
An opinionated React Native UI component library that gets you up and running in minutes.
react-native-uix is an opinionated React Native UI component library that gets you up and running in minutes.
Using npm:
npm install react-native-uix
or with yarn:
yarn add react-native-uix
This project has several project peer dependencies. A few of these include:
Refer to the project package.json file to view all required peer dependencies.
To install all of these peer dependencies quickly, from the terminal in your project directory run the shell script:
bash node_modules/react-native-uix/install.sh
This will install the peer dependencies after choosing your desired package manager.
The best way to see react-native-uix
in-action, is to take a look at the example!
import { ThemeProvider, useStyle, LayoutTopLevelScreen, GroupedTable } from "react-native-uix";
function HomeScreen() {
const { themeSet } = useStyle();
const tableItems = [
{
id: 0,
label: "Hotels",
count: 2,
iconBackgroundColor: themeSet.red,
icon: faBuilding,
onPress: () => {},
},
{
id: 1,
label: "Restaraunts",
count: 2,
iconBackgroundColor: themeSet.teal,
icon: faUtensils,
onPress: () => {},
},
{
id: 2,
label: "Universities",
count: 3,
iconBackgroundColor: themeSet.yellow,
icon: faUniversity,
onPress: () => {},
},
];
return (
<LayoutTopLevelScreen title="Home" navigation={navigation}>
<GroupedTable title="Places" items={tableItems} />
</LayoutTopLevelScreen>
);
}
function App() {
const HomeStack = createStackNavigator();
return (
<ThemeProvider>
<HomeStack.Navigator>
<HomeStack.Screen name="Home" component={HomeScreen} />
</HomeStack.Navigator>
</ThemeProvider>
);
}
Customising the theme of your app can be achieved using the ThemeProvider
component. You can determine the colours for both light and dark mode.
Light | Dark |
---|---|
![]() | ![]() |
import { ThemeProvide } from "react-native-uix";
const App: React.FC = () => {
const theme = {
light: {
textPrimary: "#345000",
tint: "#2188ff",
systemBackground: "#ff0000"
},
dark: {
textPrimary: "#345088",
tint: "#388bfd",
systemBackground: "#ff0055"
},
};
return (
<ThemeProvider theme={theme}>
<AppNavigation />
</ThemeProvider>
);
};
You can customise any of the colors below for your theme. If a color is not provided, the corresponding color in the DEFAULT_THEME
is used.
tint,
textPrimary,
textSecondary
textTertiary,
textQuarternary,
systemBackground,
secondarySystemBackground,
tertiarySystemBackground,
separator,
blue,
green,
indigo,
orange,
pink,
purple,
red,
teal,
yellow,
white,
If you are making your own custom components and would like to make use of your custom theme, whilst supporting dark mode, this is where the useStyle
hook becomes useful.
import { useStyle } from "react-native-uix";
const MyComponent = () => {
const dynamicStyles = (theme) => {
return {
container: {
width: 20,
height: 20,
backgroundColor: theme.systemBackground,
}
}
}
const { styles } = useStyle(dynamicStyles);
return (
<View style={styles.container} />
);
};
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
An opinionated React Native UI component library that gets you up and running in minutes.
The npm package react-native-uix receives a total of 0 weekly downloads. As such, react-native-uix popularity was classified as not popular.
We found that react-native-uix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.