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

Type mismatch: inferred type is Sensor? but Sensor was expected #40

Closed
Ugur-Atakan opened this issue Jan 15, 2024 · 5 comments
Closed
Assignees
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@Ugur-Atakan
Copy link

React Native Step Counter New Issue

Expected Behavior

  • I am trying to build with this library.

Actual Behavior

  • I am getting the following error:
> Task :dongminyu_react-native-step-counter:compileDebugKotlin FAILED
e: file:///C:/Users/uguratakan/Desktop/Projects/BlokField/blokfield/node_modules/@dongminyu/react-native-step-counter/android/src/main/java/com/stepcounter/services/AccelerometerService.kt:46:43 Type mismatch: inferred type is Sensor? but Sensor was expected
e: file:///C:/Users/uguratakan/Desktop/Projects/BlokField/blokfield/node_modules/@dongminyu/react-native-step-counter/android/src/main/java/com/stepcounter/services/StepCounterService.kt:40:43 Type mismatch: inferred type is Sensor? but Sensor was expected

Steps to Reproduce the Problem

  1. yarn create react-native-app my-app
  2. yarn add @dongminyu/react-native-step-counter
  3. npx react-native run-*android*

Specifications

  • @dongminyu/react-native-step-counter version: all
@dkel3slek
Copy link

같은 현상이 있습니다.

@Ugur-Atakan
Copy link
Author

You can check my fork. I fixed this problem

@dkel3slek
Copy link

Thank you for your kind reply.

@AndrewDongminYoo
Copy link
Owner

@Ugur-Atakan I really appreciate the interest and participation you've shown in this package. I know it's late, but I've seen the issue. could you please send me a pull request from your fork if you don't mind?

@AndrewDongminYoo
Copy link
Owner

Is fixing by #42

AndrewDongminYoo added a commit that referenced this issue Mar 10, 2024
solved "Type mismatch: inferred type is Sensor? but Sensor was expected"

#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

3 participants