react-native-material-ui icon indicating copy to clipboard operation
react-native-material-ui copied to clipboard

Action Button does not work with XCode 11

Open teamneem opened this issue 5 years ago • 5 comments

Even after adding in styles for the action button, this error occurs on a new project. From my research, it seems like it's relying on a calculation of window size that hasn't quite yet occurred. Not sure how to proceed!

Simulator Screen Shot - iPad Pro (12 9-inch) - 2019-09-30 at 21 59 33

teamneem avatar Oct 01 '19 03:10 teamneem

@teamneem I also got the same error when using ActionButton

i just created my own ActionButton for iOS.

{
          Platform.OS === 'ios' ?
          <TouchableOpacity onPress={() => Actions.ingredient_search()} style={{position: 'absolute', bottom: 65, right: 10, backgroundColor: PRIMARY_COLOR, height: 60, width: 60, borderRadius: 100, justifyContent: 'center',  alignItems: 'center'}}>
            <Icon name="add" color={'#fff'} />            
          </TouchableOpacity>
          :
          <ActionButton icon="add" style={{positionContainer: {paddingBottom: 45}}} onPress={() => Actions.ingredient_search()}/>
        }

sufyan297 avatar Oct 08 '19 11:10 sufyan297

Seems like I have the same error when trying to use ActionButton!

Screen Shot 2019-11-27 at 3 01 36 PM

liowalex avatar Nov 27 '19 23:11 liowalex

+1

vincenzopalazzo avatar Feb 07 '20 20:02 vincenzopalazzo

+1

anisfrontmen avatar May 05 '20 20:05 anisfrontmen

Same problem here. And the code is

const MyActionButton = () => {
    return (
        <View>
            <ActionButton />
        </View>
    )
}

OS is iOS, and display is iPhone (via Expo), and also on iOS Simulator.

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-native-community/masked-view": "0.1.10",
    "expo": "~38.0.8",
    "expo-font": "~8.2.1",
    "expo-status-bar": "^1.0.2",
    "react": "~16.11.0",
    "react-dom": "~16.11.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-gesture-handler": "~1.6.0",
    "react-native-material-ui": "^1.30.1",
    "react-native-paper": "^4.0.1",
    "react-native-reanimated": "~1.9.0",
    "react-native-safe-area-context": "~3.0.7",
    "react-native-screens": "~2.9.0",
    "react-native-web": "~0.11.7",
    "react-navigation": "^4.4.0",
    "react-navigation-drawer": "^2.5.0",
    "react-navigation-header-buttons": "^5.0.1",
    "react-navigation-material-bottom-tabs": "^2.3.0",
    "react-navigation-stack": "^2.8.2",
    "react-navigation-tabs": "^2.9.0",
    "@expo/vector-icons": "^10.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "babel-preset-expo": "~8.1.0"
  },
  "private": true
}

BertCatsburg avatar Aug 17 '20 13:08 BertCatsburg