Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Home = () => {
- return(
- ...
- navigate("ChatList", {
- updateTime: item.updated_at,
- ...
- })
- (item.updated_at === state.homeTransactions[item.phone_number])? showBlueDot(): null
- ...
- )
- }
- const ChatScreen = ({route}) => {
- const updateTime = route.params.updatedAt;
- useEffect(() => {
- dispatch({
- type: "UPDATE_TRANSACTION",
- payload: {
- phone: updateTime
- }
- })
- })
- }
- //reducer
- case "UPDAR...":
- return {
- ...state,
- hameTransactions: {
- ...state.homeTransactions,
- ...action.payload
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement