The fundamental-react-native
library is a set of React Native components based on SAP Fundamental Styles.
The SAP Fundamental Styles library is a design system and HTML/CSS component library used to build modern product user experiences with the SAP look and feel.
See Component Documentation for examples and API details.
You will need to install Node and Node Package Manager.
For an existing react application, install fundamental-react-native
:
npm install fundamental-react-native
This project does not contain fonts - they must be added to your project separately. Download Font 72
React Native Fundamental uses a centralized theme to provide consistency across all the components.
This step is important. We are passing theme
as context value that each component will access.
//your root component
import { ThemeProvider, theme } from 'fundamental-react-native';
function App() {
return (
<ThemeProvider value={theme}>
<Root />
</ThemeProvider>
);
}
//inside any file
import { Button } from 'fundamental-react-native';
function HomeScreen() {
return (
<Button>
Press Me
</Button>
);
}
Contributions, issues and feature requests are welcome!
Feel free to check issues page.