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
// types |
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
declare global { | |
namespace ReactNavigation { | |
interface RootParamList extends RootStackParamList {} | |
} | |
} | |
export type RootStackParamList = { | |
Home: undefined; | |
Profile: undefined; |
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
//1. Constants and Variables | |
// Variables - value of a variable can be changed at any point in the cod | |
var name = "Joseph" | |
name = "Joseph O." // ☑️ | |
//Constant - value of a constant can't be changed once it's set | |
let lastname = "Ajibodu" | |
//lastname = "Another Name" // (This will give an error) | |
// Multiple constants/variables on the same line |
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 { createNativeStackNavigator, NativeStackScreenProps } from '@react-navigation/native-stack'; | |
import { Button, View } from 'react-native'; | |
export type RootStackParamList = { | |
Home: undefined; | |
Profile: undefined; | |
Settings: { | |
userId: number; | |
}; | |
}; |
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
<?php | |
namespace App\Integrations; | |
use App\Models\User; | |
use Illuminate\Support\Facades\Http; | |
class Universe | |
{ | |
protected $apiKey; |
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
const logger => store => next => action => { | |
console.log("Logging", param) | |
next(action) | |
} | |
export default logger; |
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
<?php | |
namespace App\Traits; | |
trait HasWallet | |
{ | |
public function wallet() { |