an API ?
React native is a js vm + a bridge + native rendering. they are not related at all. so unless you write a python to JS parser this unlikely to happen on the phone.
go for the API which means you are frontend agnostic but there is no offline ML.