Cook said he is inspired by Modi's vision for India.
"Great to see you again @narendramodi. We’re inspired by your vision for India and excited about what we can achieve together," Cook tweeted.
Modi met US President Donald Trump on Monday.
This was the first time the two leaders met each other.
Trump was elected as the President of the US last year.
Image: Tim Cook Twitter page