Since $A$ is compact and $f$ is continuous, then $f(A)$ is compact. Suppose $f$ is not uniformly continuous. Then $\exists \epsilon >0.\forall \delta >0. \exists x,y\in A$ such that $d(x,y)<\delta$ and $d(f(x),f(y))>\epsilon$. Therefore we can choose some $x$ such that, for some specific choice of $\epsilon$, we have $d(x,y)<\delta$ and $d(f(x),f(y))>\epsilon$ for all $\delta >0$ and $y\in A$. Denote that $x$ as $x_0$
Let ${x_k}$ be a sequence with a subsequence converging to $x_0$ (that at least one such sequence exists is clear). Call this subsequence ${x_n}$. Since $f$ is continuous, then as $x_n \rightarrow x_0$ we have $f(x_n)\rightarrow f(x_0)$. Therefore, for every $\epsilon >0$ we can find some $\delta >0$ such that there exists some element $x_i$ of the sequence ${x_n}$ such that $d(x_i,d_0)<\delta$ and $df((x_i),f(x_0))$, in contradiction to our assumption that $f$ is not uniformly continuous.
Therefore, $f$ is uniformly continuous.
I'm not sure if this is a good proof, or if there are holes in it. I struggle quite a bit with uniform continuity; I don't really have a good handle on it. Please let me know if you think the proof is good, or how I can improve it.
Thanks.
Suppose has given $\epsilon > 0$ has given. for $x\in X$ since $f$ is continous at $x$, Let $\delta_x$ $$ \exists \delta_x > 0 ~~\forall y \in \mathbb R: |x-y|< \delta_x \rightarrow |f(x)-f(y)| < \frac{\epsilon}{2} $$ we have $ X\subseteq \bigcup_{x\in X} B(x,\frac{\delta_{x}}2) $ by compactness of $X$ exists $N$ such that $ X\subseteq \bigcup_{i}^N$ $B(x_i,\frac{\delta_{x_i}}2) $. Let $\delta = \min_{i=1,\cdots,N} \frac {\delta_{x_i}} 2$
consider $x, y\in X$ such that $|x-y|<\delta$, there are $1\leq i, j\leq N$ such that $x\in,B(x_i,\frac{\delta_{x_i}}2) $ and $y\in B(x_j,\frac{\delta_{x_j}}2)$ thus $$d(x_i, y)\leq d(x_i, x)+d(x,y)\leq \frac {\delta_{x_i}} 2+\delta\leq \frac {\delta_{x_i}} 2+\frac {\delta_{x_i}} 2=\delta_{x_i}$$ thus $$|f(x)-f(y)|\leq |f(x)-f(x_i)|+|f(x_i)-f(y)|<\frac{\epsilon}{2}+\frac{\epsilon}{2}=\epsilon$$