Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Nov 21, 2021
1 parent 2f1bb87 commit 00c98bf
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions expo-example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ import {StatusBar} from 'expo-status-bar';
import {Bounceable} from 'rn-bounceable';

export default function App() {
const [text, setText] = useState('Press any component below');
const imageSource = {uri: 'https://static.expo.dev/static/brand/square-512x512.png'};
const githubLink = 'https://github.com/kanzitelli/rn-bounceable';

const [text, setText] = useState('Press any component below');
const changeText = (text: string) => () => setText(text);

return (
<ScrollView contentContainerStyle={S.container}>
<StatusBar style="auto" />

<View style={{paddingBottom: 24}}>
<Bounceable onPress={() => Linking.openURL('https://github.com/kanzitelli/rn-bounceable')}>
<Text style={{fontSize: 32, textDecorationLine: 'underline', color: 'blue'}}>
RN Bounceable ⎆
</Text>
<View style={S.linkContainer}>
<Bounceable onPress={() => Linking.openURL(githubLink)}>
<Text style={S.linkText}>RN Bounceable ⎆</Text>
</Bounceable>
</View>

Expand Down Expand Up @@ -97,4 +96,13 @@ const S = StyleSheet.create({
width: 100,
borderRadius: 20,
},

linkContainer: {
paddingBottom: 24,
},
linkText: {
fontSize: 26,
textDecorationLine: 'underline',
color: 'blue',
},
});

0 comments on commit 00c98bf

Please sign in to comment.