UNPKG

344 BJavaScriptView Raw
1import { createElement } from 'rax';
2import View, { custom } from 'rax-view';
3import Image from 'rax-image';
4import img from './assets/rax.png';
5
6const a = 0;
7const b = 1;
8
9export default function Index() {
10 custom();
11 return (
12 <View>
13 Hello World!
14 <Image source={{ uri: img }} c={a && b} d={img ? a : b} />
15 </View>
16 );
17}