Skip to content

Instantly share code, notes, and snippets.

{
"create": {
"create": "const styles = StyleSheet.create({})"
},
"Platform_Select": {
"pselect": "...Platform.select({ ios: {}, android: {}})"
},
"Shadow_Properties": {
"sdw": "...Platform.select({ ios: { ...shadowProperties }, android: { elevation }}),"
},
Prerequisites for Frontend Workshop on ReactJS:
1. Own laptop
2. Git installed
- reference link for installing git https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- reference link for getting started with git https://www.taniarascia.com/getting-started-with-git/
3. NodeJS & npm (node package manager) installed
- reference link for installing nodejs https://nodejs.org/en/download/
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#F5FCFF"
},
"rnpm": {
"assets": [
"./assets/fonts/"
]
},
<key>UIAppFonts</key>
<array>
<string>the_west_gate.ttf</string>
<string>josefinSansBold.ttf</string>
<string>josefinSansItalic.ttf</string>
<string>josefinSansRegular.ttf</string>
</array>