Skip to content

Instantly share code, notes, and snippets.

@ahmadyogi543
Created August 24, 2022 08:36
Show Gist options
  • Save ahmadyogi543/44c8a1ba483933c79dfad501d1eb6509 to your computer and use it in GitHub Desktop.
Save ahmadyogi543/44c8a1ba483933c79dfad501d1eb6509 to your computer and use it in GitHub Desktop.
import React from "react";
import { StyleSheet, TouchableOpacity } from "react-native";
import { Octicons } from "@expo/vector-icons";
function NABackButton({ onPress }) {
return (
<TouchableOpacity style={styles.back} onPress={onPress}>
<Octicons name="arrow-left" size={24} color="#458200" />
</TouchableOpacity>
);
}
const styles = StyleSheet.create({
back: {
width: 40,
height: 40,
borderRadius: 24,
justifyContent: "center",
alignItems: "center",
backgroundColor: "white",
},
});
export default NABackButton;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment