Skip to content

Instantly share code, notes, and snippets.

@catalinmiron
Created October 28, 2020 20:37
Show Gist options
  • Save catalinmiron/31fec63eecf0af2e45a01cca15205cae to your computer and use it in GitHub Desktop.
Save catalinmiron/31fec63eecf0af2e45a01cca15205cae to your computer and use it in GitHub Desktop.
Dynamic tabs underline - Starter boilerplate
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
const images = {
man:
'https://images.pexels.com/photos/3147528/pexels-photo-3147528.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
women:
'https://images.pexels.com/photos/2552130/pexels-photo-2552130.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
kids:
'https://images.pexels.com/photos/5080167/pexels-photo-5080167.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
skullcandy:
'https://images.pexels.com/photos/5602879/pexels-photo-5602879.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
help:
'https://images.pexels.com/photos/2552130/pexels-photo-2552130.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
};
const data = Object.keys(images).map((i) => ({
key: i,
title: i,
image: images[i],
}));
export default function App() {
return (
<View style={styles.container}>
<StatusBar hidden />
<Text style={{ fontSize: 42 }}>❤️</Text>
<Text
style={{
fontFamily: 'Menlo',
marginTop: 10,
fontWeight: '800',
fontSize: 16,
}}
>
Expo
</Text>
<Text style={{ fontFamily: 'Menlo', fontStyle: 'italic', fontSize: 12 }}>
(expo.io)
</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
@akibulshohag
Copy link

Please give me full source code... I am from Bangladesh. I don't have enough money to buy your source code. Please me

@sudheer-devoloper
Copy link

uihgg

@robertonic
Copy link

You could follow the tutorial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment