your render method should looks like this:
render () {
let s="kaveh";
return (
<Text>
{s === 'kaveh' ? 'Hello kaveh' : 'Hello world'}
</Text>
);
}
this is based on your code.
solved Conditional Text Rendering in React Native