Skip to content

Infra/set haptic infra as an optional dependency #1245

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

Merged
merged 3 commits into from
Apr 8, 2021

Conversation

lidord-wix
Copy link
Contributor

Description

Set haptic infrastructure as an optional dependency

Changelog

Set haptic infrastructure as an optional dependency

@lidord-wix lidord-wix requested a review from ethanshar April 4, 2021 14:49
@@ -2,11 +2,11 @@ import _ from 'lodash';
import React, {Component} from 'react';
import {ScrollView} from 'react-native';
import {View, Text, Button} from 'react-native-ui-lib';
import {HapticMethods, triggerHaptic} from '../../../../src/services';
import {HapticService} from '../../../../src/services';
Copy link
Collaborator

@ethanshar ethanshar Apr 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed something 😬
You should also export the HapticService in the main src/index and use it from there
Otherwise, users can't access it (including the private uilib)

@lidord-wix lidord-wix requested a review from ethanshar April 6, 2021 14:01
@ethanshar ethanshar merged commit e2ca7fa into master Apr 8, 2021
@lidord-wix lidord-wix deleted the Infra/haptic_optional_dependency branch April 19, 2021 14:41
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.

2 participants