Skip to content

Instantly share code, notes, and snippets.

View MasKoding's full-sized avatar

Dimas Priyandi MasKoding

View GitHub Profile
import { useRouter } from 'expo-router';
import React from 'react';
import { View, Text, FlatList, Button, Image } from 'react-native';
import Ionicons from '@expo/vector-icons/Ionicons';
import EvilIcons from '@expo/vector-icons/EvilIcons';
import FontAwesome5 from '@expo/vector-icons/FontAwesome5';
const threads = [
{ id: '1', title: 'First Thread',description:'lorem ipsum blabla bla lorem ipsum blabla bla',image:require('../assets/images/react-logo.png') },
{ id: '2', title: 'Second Thread',description:'lorem ipsum blabla bla lorem ipsum blabla bla',image:require('../assets/images/react-logo.png') },
{ id: '3', title: 'Third Thread',description:'lorem ipsum blabla bla lorem ipsum blabla bla',image:require('../assets/images/react-logo.png') },
import { Image, Pressable, StyleSheet, Text, View } from 'react-native'
import React from 'react'
import ScreenWrapper from '../components/ScreenWrapper'
import { StatusBar } from 'expo-status-bar'
import { hp, wp } from '../helpers/common'
import { theme } from '../constants/themes'
import ButtonWrapper from '../components/ButtonWrapper'
const Welcome = () => {
return (
import { View, Text, Pressable, StyleSheet } from 'react-native'
import React from 'react'
import { theme } from '../constants/themes'
import { hp } from '../helpers/common'
const ButtonWrapper = ({
buttonStyle,
textStyle,
title='',
onPress=()=>{},
export const theme = {
colors:{
primary: "#00C26F",
primaryDark: "#00AC62",
dark:"#3E3E3E",
darkLight:"#E1E1E1",
gray:"#e3e3e3",
text:"#494949",
textLight:"#7c7c7c",
textDark:"#1d1d1d",
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/textView3"
private fun sendRequest1() {
mRequestQueue = Volley.newRequestQueue(this)
loading1.visibility = View.VISIBLE
var requestBody=""
movieList = ArrayList()
mStringRequest1 = object: StringRequest(
Request.Method.GET,"https://api.themoviedb.org/3/movie/now_playing",
Response.Listener {
println("tes")
val gson = Gson()
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#121111"
tools:context=".activity.IntroActivity">
<ScrollView
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#F57C00"/>
<size android:width="400dp"
android:height="200dp"
/>
<corners android:bottomLeftRadius="100dp"
android:bottomRightRadius="100dp"
val lottieVersion = "3.4.0"
implementation "com.airbnb.android:lottie:$lottieVersion"
package com.example.belajarandroidactivity
import android.media.Image
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import com.bumptech.glide.Glide
import jp.wasabeef.glide.transformations.BlurTransformation
class BelajarScrollViewActivity : AppCompatActivity() {