Before you begin, make sure you have Node.js and npm (Node Package Manager) installed on your system.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
step 1. yarn add -D patch-package postinstall-postinstall | |
step 2. make change to the files | |
setp 3. # run patch-package to create a .patch file | |
npx patch-package some-package | |
you will see a new folder is created inside `patches` | |
step 4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
var fs = require('fs'); | |
app.listen(3000, function() { | |
console.log("[NodeJS] Application Listening on Port 3000"); | |
}); | |
app.get('/api/play/:key', function(req, res) { | |
var key = req.params.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState, useRef, useEffect} from 'react'; | |
import { | |
View, | |
Dimensions, | |
Animated, | |
Text, | |
TextInput, | |
TouchableOpacity, | |
Image, | |
Platform, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SoftVibration.swift | |
// MyTestApp | |
// | |
// Created by Shafayeat Kabir on 5/12/20. | |
// | |
import Foundation | |
import CoreHaptics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
make a folder in root app as : assets then fonts fonts folder in assets and put ttf fonts | |
make a file in root : react-native-config.js and add: | |
module.exports = { | |
project: { | |
android: {} | |
}, | |
assets: ['./assets/fonts/'], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {StyleSheet, View, Dimensions} from 'react-native'; | |
import Animated from 'react-native-reanimated'; | |
import {PanGestureHandler, State} from 'react-native-gesture-handler'; | |
import {ScreenHeight, ScreenWidth} from '../../helpers/constants/common'; | |
const {width, height} = Dimensions.get('window'); | |
const { | |
cond, | |
eq, | |
add, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useRef} from 'react'; | |
import {Animated, View, StyleSheet, PanResponder, Text} from 'react-native'; | |
export default function App() { | |
const pan = useRef(new Animated.ValueXY()).current; | |
const panResponder = useRef( | |
PanResponder.create({ | |
onStartShouldSetPanResponder: () => { | |
console.log('start'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ImageBackground source={DEFAULT_IMAGE} style={{flex: 1}}> | |
<Svg width={ScreenWidth} height={ScreenHeight}> | |
<Mask id="myMask"> | |
<Rect x="0" y="0" width="100%" height="100%" fill="white" /> | |
<Circle | |
cx={ScreenWidth / 2} | |
cy={ScreenHeight / 2} | |
r={100} | |
fill="black" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect, useContext, Component } from 'react'; | |
import { View, Button } from 'react-native'; | |
import PropTypes from 'prop-types'; | |
import { api } from '../helpers/HttpUtils'; | |
const data = { | |
medicalInformation: '', | |
screeningAnswers: [], | |
uploadedFiles: [ |
NewerOlder