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
| module.exports = { | |
| env: { | |
| es2020: true, | |
| }, | |
| extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'prettier/react'], | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| ecmaFeatures: { | |
| jsx: 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
| /* | |
| * https://bost.ocks.org/mike/shuffle | |
| */ | |
| function shuffle(array) { | |
| var m = array.length, t, i; | |
| // While there remain elements to shuffle… | |
| while (m) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| react-intl-universal: Internacionalização. |
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
| const handleSearch = () => { | |
| const formatedQuery = query | |
| .toLowerCase() | |
| .trim() | |
| .normalize('NFD') | |
| .replace(/[\u0300-\u036f]/g, ''); | |
| const resultsTemp = clientes.filter(cliente => { | |
| const formatedString = cliente.nome | |
| .toLowerCase() | |
| .trim() |
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
| const Schema = Yup.object().shape({ | |
| password: Yup.string() | |
| .required('Campo senha vazio.') | |
| .matches( | |
| /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/, | |
| 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and One Special Case Character', | |
| ), | |
| changepassword: Yup.string().when('password', { | |
| is: val => (val && val.length > 0 ? true : false), | |
| then: Yup.string().oneOf( |
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
| npx --ignore-existing react-native init MyApp. |
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
| In MacOs Mojave with RN 0.61 and Xcode 10.1, when pod install glog (0.3.5) error... | |
| to resolve this, just type on terminal: | |
| sudo xcode-select --switch /Applications/Xcode.app |
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
| add in android/app/src/main/res/value | |
| if there is no 'styles.xml' file then create your own 'styles.xml' and put the code below : | |
| <resources> | |
| <style name="SpinnerStyle" parent="@android:style/Widget.Spinner"> | |
| <item name="android:background">@null</item> | |
| </style> | |
| <style name="SpinnerItem" parent="Theme.AppCompat.Light.NoActionBar"> | |
| <item name="android:gravity">right</item> |
NewerOlder