Untitled

 avatar
unknown
plain_text
3 years ago
2.4 kB
5
Indexable
<View style={{flexDirection:"row"}}>
                    <TouchableOpacity
                    style={{
                        flex: 1,
                    }}
                    onPress={() => {
                        // code
                    }}
                    >
                        <ImageBackground 
                            resizeMode="cover"
                            style={{
                                marginTop: 10,
                                backgroundColor: (this.state.perPage == 1) ? "#ff6d01" : "#0072ff",
                                margin: 5,
                                paddingVertical: 10,
                                paddingTop: 50,
                                paddingHorizontal: 10,
                                borderRadius: 5,
                                flex: 1, 
                            }}
                            
                        >
                        <Text style={{
                            color:"white",
                            fontSize: 20,
                            fontWeight: "bold",
                        }}>Appointment</Text>
                        </ImageBackground>
                    </TouchableOpacity>
                    <TouchableOpacity
                    style={{
                        flex: 1,
                    }}
                    onPress={() => {
                        // code
                    }}
                    >
                        <ImageBackground 
                            resizeMode="cover"
                            style={{
                                marginTop: 10,
                                backgroundColor: (this.state.perPage == 2) ? "#ff6d01" : "#0072ff",
                                margin: 5,
                                paddingVertical: 10,
                                paddingTop: 50,
                                paddingHorizontal: 10,
                                borderRadius: 5,
                            }}
                        >
                        <Text style={{
                            color:"white",
                            fontSize: 20,
                            fontWeight: "bold",
                        }}>Consultation</Text>
                        </ImageBackground>
                    </TouchableOpacity>
                </View>
Editor is loading...