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

Text selection not working in RN 0.68.0-rc.2 #33383

Closed
RalissonMattias opened this issue Mar 4, 2022 · 3 comments
Closed

Text selection not working in RN 0.68.0-rc.2 #33383

RalissonMattias opened this issue Mar 4, 2022 · 3 comments

Comments

@RalissonMattias
Copy link

Description

Text does not become selectable after enabling selectable={true} property on ANDROID, on IOS it works without problems

Version

0.68.0-rc.2

Output of npx react-native info

    OS: Windows 10 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 2.63 GB / 15.73 GB
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      API Levels: 23, 28, 29, 30, 31
      Build Tools: 28.0.2, 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0
      System Images: android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version     2021.1.0.0 AI-211.7628.21.2111.8092744
    Visual Studio: Not Found
  Languages:
    Java: 11.0.12
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.68.0-rc.2 => 0.68.0-rc.2
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

  • Running the command: react-native init projectName --version 0.68.0-rc.2
  • Create the simple component simple text and try select

Snack, code example, screenshot, or link to a repository

Code to reproduce the problem

import React from 'react';
import {SafeAreaView, StyleSheet, Text, View} from 'react-native';

const App = () => {
  return (
    <View style={{justifyContent: 'center', alignItems: 'center', flex: 1}}>
      <Text selectable={true}>text example</Text>
    </View>
  );
};

export default App;

@RalissonMattias
Copy link
Author

@lamlengend98
Copy link

Hi, i installed rn 0.68.0-rc.1, but when build ios has a problem below
Did you see it before? I dont have solution for it

image

@lamlengend98
Copy link

lamlengend98 commented Mar 5, 2022

my package.json

"dependencies": {
    "react": "17.0.2",
    "react-native": "0.68.0-rc.1",
    "react-native-screens": "^3.13.1"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants