const changeSetting = (value, options, setterfunction) => {
var targetValue = 0;
if (value == options.length - 1) { //인덱스 넘어가면
targetValue = 0; // 0으로 바꿔버려라
} else {
targetValue = value + 1;
}
setterfunction(targetValue);
console.log(options[targetValue]);
};
const flexDirections = ['row', 'row-reverse', 'column', 'column-reverse'];
const justifyContents = [
'flex-start',
'flex-end',
'center',
'space-between',
'space-around',
'space-evenly',
];
const alignItems = ['flex-start', 'flex-end', 'center', 'stretch', 'baseline'];
const wraps = ['nowrap', 'wrap', 'wrap-reverse'];
const directions = ['inherit', 'ltr', 'rtl'];
const [flexDirection, setFlexDirection] = useState(0);
const hookedStyles = {
flexDirection: flexDirections[flexDirection],
// 여기에 추가추가
npm install @react-navigation/native
npx expo install react-native-screens react-native-safe-area-context
npm install react-native-screens react-native-safe-area-context
npx pod-install ios
: for MacOs
npm install @react-navigation/stack