mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 09:00:06 +00:00
18 lines
339 B
JavaScript
18 lines
339 B
JavaScript
import { useState, useEffect, useRef, useContext } from 'react';
|
|
import { useWindowDimensions } from 'react-native';
|
|
|
|
export function useCardItem(item) {
|
|
|
|
const [state, setState] = useState({});
|
|
|
|
const updateState = (value) => {
|
|
setState((s) => ({ ...s, ...value }));
|
|
}
|
|
|
|
const actions = {
|
|
};
|
|
|
|
return { state, actions };
|
|
}
|
|
|