diff --git a/Tags/__tests__/Tags-tests.js b/Tags/__tests__/Tags-tests.js
index ea84416..8c22d20 100644
--- a/Tags/__tests__/Tags-tests.js
+++ b/Tags/__tests__/Tags-tests.js
@@ -1,5 +1,7 @@
import React from "react";
import renderer from "react-test-renderer";
+import { Text } from "react-native";
+
import Tags from "../../";
describe("Tags", () => {
@@ -18,6 +20,24 @@ describe("Tags", () => {
expect(tree).toMatchSnapshot();
});
+ describe("renderTag prop", () => {
+ it("allows me to render a custom tag with a function", () => {
+ const renderTag = jest.fn(({ tag }) => {tag});
+
+ const tree = renderer
+ .create(
+
+ )
+ .toJSON();
+ expect(tree).toMatchSnapshot();
+ });
+ });
+
describe("textInputProps", () => {
const tree = renderer
.create(
diff --git a/Tags/__tests__/__snapshots__/Tags-tests.js.snap b/Tags/__tests__/__snapshots__/Tags-tests.js.snap
index 46e32e1..0c645a5 100644
--- a/Tags/__tests__/__snapshots__/Tags-tests.js.snap
+++ b/Tags/__tests__/__snapshots__/Tags-tests.js.snap
@@ -165,6 +165,71 @@ exports[` 1`] = `
`;
+exports[`Tags renderTag prop allows me to render a custom tag with a function 1`] = `
+
+
+ palm
+
+
+ oil
+
+
+ sucks
+
+
+
+
+
+`;
+
exports[`Tags should render props correctly 1`] = `