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 {SafeAreaView} from 'react-native-safe-area-context' | |
const SafeAreaBackground = ({ | |
children = null, | |
backgroundColorTop = '', | |
backgroundColorBottom = '', | |
}) => { | |
return ( | |
<> |
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 {View, Platform} from 'react-native' | |
const ARBITRARY_SIZE = 1000 | |
const ArbitrarySizeViewIos = (props) => { | |
if (Platform.OS !== 'ios') return null | |
const backgroundColor = props?.backgroundColor |
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
export default function PressableHighlight(props) { | |
return ( | |
<Pressable | |
android_ripple={{ | |
color: '#676B5F', | |
}} | |
style={({ pressed }) => [ | |
Platform.select({ | |
ios: { | |
backgroundColor: pressed ? 'rgba(0,0,0,0.1)' : 'transparent', |
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
"postinstall": "husky install", | |
"validate-branch-name": { | |
"pattern": "^(feature|release|hotfix)/(KB-[0-9]+)-([a-zA-Z]+)", | |
"errorMsg": "Invalid branch name, please use name rule like this: feature/KB-123-implementNewLogic" | |
} | |
husky | |
husky-check-email | |
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
<Switch | |
style={{ transform: [{ scaleX: 0.9 }, { scaleY: 0.9 }] }} | |
onValueChange={handleValueChange} | |
value={value} | |
ios_backgroundColor={value ? '#B3BCB4' : '#B6B6B6'} | |
trackColor={{ | |
false: '#B6B6B6', | |
true: '#B3BCB4', | |
}} | |
thumbColor={value ? palette.green : palette.gray} |
OlderNewer