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

React switch component not working on Android #23348

Closed
ameenmattar opened this issue Feb 8, 2019 · 4 comments
Closed

React switch component not working on Android #23348

ameenmattar opened this issue Feb 8, 2019 · 4 comments
Labels
Bug Component: Switch Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@ameenmattar
Copy link

🐛 Bug Report

(Bug on Android Only)
Using Switch component is making this bug appear suddenly when i launch the page that contains the switch, while removing or commenting the component-

    // return (
    //   <Switch
    //     onTintColor={"#CE2A53"}
    //     onValueChange={this._onSwitchChange.bind(this)}
    //     tintColor={"#cccccc"}
    //     value={switchVal}
    //   />
    // );

the page opens and everything is good.

The given error from the switch is :

screenshot_20190208-170519_blediclub

Expected Behavior

The page should launch.

Code Example

    return (
      <Switch
        onTintColor={"#CE2A53"}
        onValueChange={this._onSwitchChange.bind(this)}
        tintColor={"#cccccc"}
        value={switchVal}
      />
    );

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-5575R CPU @ 2.80GHz
Memory: 45.98 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.10.0 - /usr/local/bin/node
Yarn: 1.5.1 - /usr/local/bin/yarn
npm: 6.6.0-next.0 - /usr/local/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.1 AI-173.4697961
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.58 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@dulmandakh
Copy link
Contributor

what is your Android version?

@ameenmattar
Copy link
Author

ameenmattar commented Feb 10, 2019

@dulmandakh Android 8.0 (Samasung S8)

@kelset
Copy link
Contributor

kelset commented Feb 12, 2019

0.56.0 => 0.56.0

You should upgrade to either 0.57.x or 0.58.x - we are not planning on doing patch releases for 0.56.

Please let me know if you have this same issue on 0.58, if that's the case I'll reopen this.

@kelset kelset closed this as completed Feb 12, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Feb 12, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: Switch Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants