TouchableOpacity - setOpacity

Expo Version: 34.0.4
All Platforms

I need to remove opacity effect on TouchableOpacity.
In other words i need only onPress action without any animation.

Is it possible? Tnx

This works for me. (Tested on Android):

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

export default function App() {
  return (
    <View style={styles.container}>
      <Text onPress={() => alert("Pressed!")}>Open up App.js to start working on your app!</Text>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.