Skip to content

feat!: make svg optional - #6

Merged
MalcolmTomisin merged 4 commits into
mainfrom
ta-make-svg-optional
Oct 4, 2026
Merged

MalcolmTomisin merged 4 commits into
mainfrom
ta-make-svg-optional

Conversation

@MalcolmTomisin

Copy link
Copy Markdown
Contributor

Move GoogleSignInButton (and its GoogleLogo) to a dedicated
@thoughtbot/react-native-social-auth/google-button subpath export and
remove it from the root barrel. Previously the button was eagerly
reachable from the root entry, so Metro pulled react-native-svg into
every consumer's bundle — even those using only the GoogleSignIn API.

Consumers who only use the core API can now install and bundle without
react-native-svg; it is required only when importing the button subpath.
Marked react-native-svg as optional in peerDependenciesMeta.

@MalcolmTomisin
MalcolmTomisin merged commit a267a15 into main Oct 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant