Skip to content

Commit

Permalink
Finish Day 19
Browse files Browse the repository at this point in the history
  • Loading branch information
hewad-mubariz committed Jun 6, 2024
1 parent 347849c commit 8d5d25c
Show file tree
Hide file tree
Showing 17 changed files with 20,868 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,9 @@ https://github.com/hewad-mubariz/reactnative-50-days/assets/32339404/92e37581-72
The Expandable Floating Action Button (FAB) component is a customizable, circular button that expands to reveal multiple action buttons. When the main FAB is pressed, it expands smoothly to display a list of actions, each with its own icon, color, title, and description. This component is designed to provide quick access to multiple actions in a user-friendly and visually appealing manner.

https://github.com/hewad-mubariz/reactnative-50-days/assets/32339404/3f0a1002-3cbf-4287-a8b8-36d4c09c4fa0

# Day 19 Micro Swipe Actions

Micro Swipe Actions brings a sleek and intuitive way for users to interact with list items or cards through swipe gestures. This component allows for smooth, responsive swipe actions that reveal a set of customizable icons. As the user swipes, icons transition from dots to fully visible icons, offering actions such as bookmarking, starring and etc. The component ensures a fluid user experience with spring animations that make the interactions feel natural and engaging. Perfect for enhancing the functionality of lists or cards in some apps.

https://github.com/hewad-mubariz/reactnative-50-days/assets/32339404/cfbf83c1-e37b-493e-b32c-fd15eef38a47
24 changes: 24 additions & 0 deletions micro-swipe-actions/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import Card from "./src/components/Card";

export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<View style={styles.container}>
<Card />
</View>
</GestureHandlerRootView>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "lightblue",
alignItems: "center",
justifyContent: "center",
paddingHorizontal: 12,
},
});
27 changes: 27 additions & 0 deletions micro-swipe-actions/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"expo": {
"name": "microSwipes",
"slug": "microSwipes",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added micro-swipe-actions/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added micro-swipe-actions/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added micro-swipe-actions/assets/hand.draw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added micro-swipe-actions/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added micro-swipe-actions/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions micro-swipe-actions/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
'react-native-reanimated/plugin',
],
};
};
Loading

0 comments on commit 8d5d25c

Please sign in to comment.