Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable screens by default #869

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

WoLewicki
Copy link
Member

Description

Enabled native components of react-native-screens by default. It results in no need of calling enableScreens() at the top of your app to use them 🎉

Changes

Changed index.native.tsx.

Test code and steps to reproduce

Do not call enableScreens() at the top of your app and spot that native components are used.

Checklist

  • Ensured that CI passes

@kacperkapusciak kacperkapusciak merged commit 958ca2c into master Mar 31, 2021
@kacperkapusciak kacperkapusciak deleted the @wolewicki/enable-screens-by-default branch March 31, 2021 07:20
@yanush
Copy link

yanush commented Apr 3, 2021

Is it still possible to disable it, even though it's being enabled by default?

@kacperkapusciak
Copy link
Member

@yanush add these lines to entry file of your app:

import { enableScreens } from 'react-native-screens';

enableScreens(false);

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.

3 participants