react-native-grace A toolkit for React Native development
A toolkit for React Native development
yarn add react-native-grace
import logger, {setCustomLogger} from 'react-native-grace/logger';
// Set custom loggers (optional)
setCustomLogger({error: bugSnag.error});
// Log :)
logger.log('Any');
logger.warn('String');
logger.error(new Error('e!'));
import {set, get, remove} from 'react-native-grace/local-storage';
const keys = {
UUID: 'UUID',
}
void set(keys.UUID, '679f4133-d19b-4fbf-9150-7cffa22f26a7');
await get(keys.UUID); // '679f4133-d19b-4fbf-9150-7cffa22f26a7'
await remove(keys.UUID);
// Method Utils
import {responsive, getImageHeight} from 'react-native-grace/responsive';
// Check Utils
import {isPhone, isTablet} from 'react-native-grace/responsive';
// Dimensions
import {screenWidth, screenHeight} from 'react-native-grace/responsive';
// Breakpoints
import {
bpPhoneSmall,
bpPhoneMedium,
bpTabletSmall,
bpTabletMedium,
bpTabletLarge,
} from 'react-native-grace/responsive';
import {layout, GridWrapper} from 'react-native-grace/layout';
const padding = layout.mb.md;
<GridWrapper>...</GridWrapper>
import {opacity, fontSize, color} from 'react-native-grace/theme';
const opacity = opacity[10];
const font = fontSize.lg;
const color = color.white;
Author: bradleyflood
Source Code: https://github.com/bradleyflood/react-native-grace
Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.
Skenix is providing React Native Development Services with qualified React Native App Developers. Get the best React Native App Development Services.
Are you a mobile app developer looking for more efficient tools for your projects? Mobile app development is getting tougher and tougher as the market continues to grow. As a developer, you need to develop Apps which meet the demands of your users. To achieve this, adopt the right tools, like the React Native development framework.
Looking for top React Native mobile app development company in USA for Startups & Enterprise? Find out the top list of React Native mobile app development company in USA.
Hire top react native app development company in New York to build and develop custom react native mobile apps for Android & iOS with the latest features.