const fields = Object.keys(data?.[0]);
const searhResponse = searchVl ? data?.filter(el => fields.find(f => el[f]?.toString()?.toLowerCase()?.includes(searchVl?.toLowerCase()))) : data;
This file contains hidden or 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
// SO responsive mixin | |
// a mixin is different from a function as it does not return a value but serves as placeholder for code | |
@mixin responsive( $breakpoint ) { | |
/* | |
breakpoints are viewport arbitrary values, | |
they are defined with the aim of allowing the SCSS/CSS code of your app' behave accordingly to your user's device width, | |
the breakpoints I used were inspired by Bootstrap => | |
https://getbootstrap.com/docs/5.0/layout/breakpoints/ | |
*/ | |
@if $breakpoint == smartphone-portrait { |
https://www.appicon.co/
https://github.com/MasonLe2497/cli-tools
fnm install 16.16.0
fnm use 16.16.0
fnm default 16.16.0
create file ngrok.yml
authtoken: ***
version: "2"
region: "us"
tunnels:
first:
addr: 6006
proto: http
import { Platform, StyleSheet } from 'react-native';
import fs from 'react-native-fs';
import { decode } from 'base64-arraybuffer';
import AWS from 'aws-sdk';
import 'react-native-get-random-values'
import { customAlphabet } from 'nanoid'
const nanoid = customAlphabet('1234567890abcdef', 10)