Way before Reagan. LBJ's Great Society and the Voting Rights Act were in the early 60's. FDR did the New Deal, which pissed off Republicans.
You might have to go back to 1912, when Wilson won the presidency to get the full switch effect. Wilson was a nasty racist, who, like Reagan, became incapacitated and had his wife do his job for him.