npx react-native init AwesomeTSProject --template react-native-template-typescript
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
| /^(\+?56)?(\s?)(0?9)(\s?)[98765]\d{7}$/ |
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
| var moment = require('moment'); | |
| function calculateBusinessDays(firstDate, secondDate){ | |
| //Initiallize variables | |
| var day1 = moment(firstDate); | |
| var day2 = moment(secondDate); | |
| var adjust = 0; | |
| if((day1.dayOfYear() === day2.dayOfYear()) && (day1.year() === day2.year())){ | |
| return 0; |
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
| // Instalar react-navigation/native | |
| npm install @react-navigation/native | |
| // Instalar las dependencias | |
| npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view | |
| // Instalar navegación en Stack | |
| npm i @react-navigation/stack |