Perubahan kecil pada cara penulisan Commit yang menjadikan kalian seorang developer yang lebih baik.
Format: <type>(<scope>): <subject>
<scope> bersifat optional
| /** | |
| * Merges two objects (`base` and `patch`) by overriding values in `base` with non-empty values from `patch`. | |
| * | |
| * - If a value in `patch` is `null`, `undefined`, or an empty string (`""`), the corresponding value from `base` is used. | |
| * - For nested objects, the function performs a recursive merge. | |
| * | |
| * This function is useful for scenarios where default values (`base`) need to be preserved unless explicitly replaced | |
| * by valid values from another source (`patch`). | |
| * | |
| * @template T - The type of the objects being merged. Defaults to `object`. | 
| // packages | |
| import { Dimensions, PixelRatio, Platform, StatusBar } from 'react-native'; | |
| import Constants from '@constants'; | |
| import { isIphoneX } from '@utils/platform.utils'; | |
| const { | |
| GUIDELINE: { WIDTH, HEIGHT }, | |
| } = Constants; | 
| [ | |
| { | |
| "name": "Afghanistan", | |
| "flag": "🇦🇫", | |
| "dial_code": "+93", | |
| "iso_code": "AFG" | |
| }, | |
| { | |
| "name": "Albania", | |
| "flag": "🇦🇱", | 
| #Win | |
| cd android && gradlew clean && cd .. && react-native start --reset-cache | |
| # then ctrl + x (or c) to stop after reset cache | |
| #osX | |
| cd android && ./gradlew clean && cd .. && react-native start --reset-cache | |
| # then control + c to stop after reset cache | 
| // @flow | |
| import React from 'react'; | |
| import { Image } from 'react-native'; | |
| import type ImageStylePropTypes from 'react-native/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes'; | |
| import { Styles } from './Avatar.component.style'; | |
| type Props = { | |
| source: {uri: string} | number, | |
| size: number, | 
| // How to use ScrollableScreen (Screen Component) | |
| //@flow | |
| import React from 'react'; | |
| import { View } from 'react-native'; | |
| import { Styles } from './Example.screen.style'; | |
| import { ScrollableScreen } from '../Components'; | |
| type ScreenProps = {} | 
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:shareInterpolator="false"> | |
| <translate | |
| android:fromXDelta="0%" android:toXDelta="0%" | |
| android:fromYDelta="100%" android:toYDelta="0%" | |
| android:duration="700" /> | |
| </set> | 
| package per2; | |
| public class Engine { | |
| private String manufacturer; | |
| private double engineDisplacement; | |
| private String fuelType; | |
| private int yearProduction; | |
| public Engine ( | |
| String manufacturer, | 
| #include <iostream> | |
| #include <iomanip> | |
| using namespace std; | |
| int main() { | |
| int Nilai[20]; | |
| int i, k, N; | |
| int temp, jarak, s; | |
| cout << "Masukan banyak bilangan: "; |