All Projects → NewBieBR → React Native Normalize

NewBieBR / React Native Normalize

Small and simple package that helps make your React Native app responsive easily

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to React Native Normalize

Educenter Hugo
Educenter is an educational website template. It can be used as an online teaching platform, school and university websites
Stars: ✭ 96 (-13.51%)
Mutual labels:  responsive
Bootstrap4 Fs Modal
A simple way to improve UX of Bootstrap 4 modals on mobile phones.
Stars: ✭ 102 (-8.11%)
Mutual labels:  responsive
Tailwindcss
A utility-first CSS framework for rapid UI development.
Stars: ✭ 50,879 (+45736.94%)
Mutual labels:  responsive
Universal Resume
Minimal and formal résumé (CV) website template for print, mobile, and desktop. https://bit.ly/ur_demo
Stars: ✭ 1,349 (+1115.32%)
Mutual labels:  responsive
Mapify
Responsive and stylable image maps using jQuery, SVG and CSS3
Stars: ✭ 100 (-9.91%)
Mutual labels:  responsive
Framy Css
Very simple CSS Framework
Stars: ✭ 103 (-7.21%)
Mutual labels:  responsive
React Native Flexbox Grid
Responsive Grid for React Native
Stars: ✭ 95 (-14.41%)
Mutual labels:  responsive
Light Blue Dashboard
🔥 Free and open-source admin dashboard template built with Bootstrap
Stars: ✭ 110 (-0.9%)
Mutual labels:  responsive
Hugo Coder
A minimalist blog theme for hugo.
Stars: ✭ 1,374 (+1137.84%)
Mutual labels:  responsive
Bootstrap Rtl
Bootstrap RTL Standard 3 and 4
Stars: ✭ 106 (-4.5%)
Mutual labels:  responsive
Imgnotes
Extension of the jQuery imgViewer plugin to add markers and notes to the image
Stars: ✭ 98 (-11.71%)
Mutual labels:  responsive
Angular Generic Table
A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
Stars: ✭ 100 (-9.91%)
Mutual labels:  responsive
React Native Responsive Linechart
A customizable and responsive line or area chart for react-native
Stars: ✭ 105 (-5.41%)
Mutual labels:  responsive
Particles.js
A lightweight, dependency-free and responsive javascript plugin for particle backgrounds.
Stars: ✭ 1,336 (+1103.6%)
Mutual labels:  responsive
Cayman Theme
A responsive theme for GitHub Pages
Stars: ✭ 1,452 (+1208.11%)
Mutual labels:  responsive
Fitvids
Make your video embeds responsive
Stars: ✭ 95 (-14.41%)
Mutual labels:  responsive
Devextreme
HTML5 JavaScript Component Suite for Responsive Web Development
Stars: ✭ 1,385 (+1147.75%)
Mutual labels:  responsive
Responsive Sidebar Navigation
An easy-to-integrate side, vertical navigation, ideal for dashboards and admin areas.
Stars: ✭ 111 (+0%)
Mutual labels:  responsive
Lightning Admin Angular
A mobile first design of a responsive admin template built with angular and bootstrap
Stars: ✭ 107 (-3.6%)
Mutual labels:  responsive
Portfolio one Page Template
Free responsive one page portfolio template
Stars: ✭ 106 (-4.5%)
Mutual labels:  responsive

License: MIT PRs Welcome npm version

Without normalize

With normalize

React Native Normalize

react-native-normalize is a small and simple package that helps make your React Native app responsive easily.

It comes with a function normalize that will adapt a value depending on the screen's width or height so you can use it for width, height, top, bottom, fontSize, borderRadius,...

// on iPhone 8
normalize(100)          // = 100
normalize(50, 'height') // = 50

// on iPhone 5s
normalize(100)          // = 86
normalize(50, 'height') // = 43

// on iPhoneXs Max
normalize(100)          // = 110
normalize(50, 'height') // = 67

Quick example

import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import normalize from 'react-native-normalize';

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <View style={styles.box}>
          <Text style={styles.text}>React Native Normalize</Text>
        </View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  box: {
    alignItems: 'center',
    justifyContent: 'center',
    top: normalize(180, 'height'),
    left: normalize(40),
    width: normalize(300),
    height: normalize(300),
    borderRadius: normalize(150),
    backgroundColor: '#009fcd',
  },
  text: {
    fontSize: normalize(60),
    color: 'white',
  },
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].