H-1B employment can be part-time but it needs to be professional in nature - that is, specialized and requiring a bachelor's degree in a specific field of study.
I'm guessing the question was that the OP was already employed on an H1B visa with a company, and wants to drive for Lyft.