Skip to content

Instantly share code, notes, and snippets.

View just1and0's full-sized avatar
🏠
working from home!

Oluwatobi Shokunbi just1and0

🏠
working from home!
View GitHub Profile
@just1and0
just1and0 / react-native.config.js
Created November 29, 2019 15:43
This Gist is a compilation of every possible config you might have.
//set up fonts
module.exports = {
project: {
ios: {},
android: {},
},
assets: [
'path-to-font-asset'
]
};
@just1and0
just1and0 / media-query.css
Created March 13, 2019 11:13 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@just1and0
just1and0 / nigerian-banks.js
Last active June 11, 2019 09:29
πŸ‡³πŸ‡¬πŸ’³ List of currently authorized commercial banks in Nigeria, as listed by CBN (January 2019) - nigerian-banks.js
return [
"Access Bank",
"Citibank Nigeria",
"Diamond Bank",
"Ecobank Nigeria",
"Fidelity Bank",
"First Bank Nigeria",
"First City Monument Bank",
"Guaranty Trust Bank",
"Heritage Banking Company",
@NickFoden
NickFoden / firebase to array
Created March 2, 2018 21:28
Convert Firebase Response Object to an array
// export const snapshotToArray = snapshot => {
// let returnArr = [];
// snapshot.forEach(childSnapshot => {
// let item = childSnapshot.val();
// item.key = childSnapshot.key;
// returnArr.push(item);
// });
// return returnArr;
@mayank-shekhar
mayank-shekhar / Rename Package Name in React Native
Created February 16, 2018 07:28
Rename App ID and Package name for a React Native App.
For Android:
Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java:
package MY.APP.ID;
In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java:
package MY.APP.ID;
In android/app/src/main/AndroidManifest.xml:
package="MY.APP.ID"
@gs-akhan
gs-akhan / index.js
Created April 9, 2017 21:58
Sending Data from WebView To React Native
//This sends data from WebView to React Native
...
<script>
window.postMessage("Sending data from WebView");
</script>
...
//In order to get data the was sent from WebView use onMessage prop on <WebView>
...
@gokulkrishh
gokulkrishh / media-query.css
Last active April 22, 2025 04:29
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */