Question: is gendry heir to the throne?
Answer: Also Gendry is the current heir to the Throne regardless his birth since he's the only living relation of Robert Baratheon. So even though he's base born he's still the only one left in the Baratheon's hence he's the default heir now. ... Ned also immediately recognized him as a bastard of Robert's.