Skip to content

Instantly share code, notes, and snippets.

View jrapala's full-sized avatar

Juliette (Rapala) Russum jrapala

View GitHub Profile
@jrapala
jrapala / ExternalLink.test.js
Created July 16, 2020 20:55
Mocking RN Linking
@jrapala
jrapala / normalize.ts
Last active July 6, 2023 12:26
Normalize React Native font sizes
// How to use:
//
// StyleSheet or inline styles:
// fontSize: normalize(15),
//
// styled-components:
// font-size: ${normalize(15) + "px"};
import { Dimensions, Platform, PixelRatio } from "react-native"