It's not either one or the other. Anki is a supplement to input received from native speakers and media. The idea of spaced repetition is to help one efficiently remember the thousands and thousands of words needed for a sophisticated vocabulary.
I definitely don't recommend anyone to try and learn a language from e.g. Anki only.