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
import React from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import DateTimePicker from './src/components/DateTimePicker'; | |
const App = () => { | |
return <DateTimePicker />; | |
}; | |
export default App; | |
const styles = StyleSheet.create({}); |
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
import React, { useState } from "react"; | |
import { Button, View } from "react-native"; | |
import DateTimePickerModal from "react-native-modal-datetime-picker"; | |
const Example = () => { | |
const [isDatePickerVisible, setDatePickerVisibility] = useState(false); | |
const showDatePicker = () => { | |
setDatePickerVisibility(true); | |
}; |
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
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="android:textColor">#000000</item> | |
<item name="android:datePickerDialogTheme">@style/Dialog.Theme</item> | |
<item name="android:timePickerDialogTheme">@style/Dialog.Theme</item> | |
</style> |
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
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="android:textColor">#000000</item> | |
<item name="android:datePickerDialogTheme">@style/Dialog.Theme</item> | |
<item name="android:timePickerDialogTheme">@style/Dialog.Theme</item> | |
</style> | |
<!-- Configuration for Dialog.theme. --> | |
<style name="Dialog.Theme" parent="Theme.AppCompat.Light.Dialog"> |
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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
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
body{ | |
font-family: Tahoma; | |
color: #444; | |
letter-spacing: 1px; | |
} | |
h1, h2{ | |
font-weight: normal; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link href="styles.css " rel="stylesheet" /> | |
<title>JavaScript DOM Tutorials</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<header> |
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
// delete a book | |
// let deleteBtns = document.querySelectorAll('#book-list .delete'); | |
// Array.from (deleteBtns) | |
// .forEach( deleteBtn => { | |
// deleteBtn.addEventListener('click', function(e){ | |
// const clickedButtonParent = e.target.parentElement; | |
// clickedButtonParent.parentNode.removeChild(clickedButtonParent); | |
// }) |
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
body{ | |
font-family: Tahoma; | |
color: #444; | |
letter-spacing: 1px; | |
} | |
h1, h2{ | |
font-weight: normal; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link href="styles.css " rel="stylesheet" /> | |
<title>JavaScript DOM Tutorials</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<header> |
NewerOlder