Skip to content

Instantly share code, notes, and snippets.

View gustfm's full-sized avatar
🎯
Focusing

Gustavo Soares gustfm

🎯
Focusing
  • SoluCX
  • São José dos Campos
View GitHub Profile
@gustfm
gustfm / css.md
Created November 4, 2023 20:14 — forked from ptomato/css.md
GTK CSS properties
@gustfm
gustfm / mock-axios.js
Created March 18, 2022 13:17 — forked from cowboy/mock-axios.js
axios mocking via interceptors
import axios from 'axios'
let mockingEnabled = false
const mocks = {}
export function addMock(url, data) {
mocks[url] = data
}
.w-25 {
width: 25% !important;
}
.w-50 {
width: 50% !important;
}
.w-75 {

Quando estiver usando grid e precisar deixar o elemento com scroll o melhor a se fazer é sempre assim:

<div style="overflow-x: auto">
  <div style="overflow-x: scroll; display: grid;">
    ....
  </div>
</div>
import styled from 'styled-components'
export const Header = styled.View`
width: 100%;
height: 50;
border-bottom-color: #ccc;
border-style: solid;
border-bottom-width: 1px;
`
import React, { Component } from 'react'
import {
View,
FlatList,
ScrollView
} from 'react-native'
import {
Header
} from './style'
import styled from 'styled-components'
export const StoryContainer = styled.View`
width: 80px;
border-bottom-color: #efefef;
border-style: solid;
border-bottom-width: 0.5px;
display: flex;
flex-direction: column;
import React from 'react'
import {
StoryContainer,
OutlinePhoto,
Photo,
Nickname
} from './style'
export default props => {