Skip to content

Incompatible with Expo 53 #976

@DevilBoy007

Description

@DevilBoy007

Describe the bug

Importing package in Expo 53 app causes RenderError

Reproduction - (required - issue will be closed without this)

  1. quickstart expo app with
  • npx create-expo-app@latest
  1. start development build to ensure it works
  • npx expo run:ios
  1. install places autocomplete
  • npx expo install react-native-google-places-autocomplete
  1. import package and utilize component in app/(tabs)/index.tsx (see example code below)
  2. rerun development build to see error
  • npx expo run:ios

Please provide a FULLY REPRODUCIBLE example.

Click to expand!
import { Image } from 'expo-image';
import { StyleSheet } from 'react-native';

import ParallaxScrollView from '@/components/ParallaxScrollView';

import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete';

export default function HomeScreen() {
return (
  <ParallaxScrollView
    headerBackgroundColor={{ light: '#A1CEDC', dark: '#1D3D47' }}
    headerImage={
      <Image
        source={require('@/assets/images/partial-react-logo.png')}
        style={styles.reactLogo}
      />
    }>
    <GooglePlacesAutocomplete
      placeholder="Search"
      onPress={(data, details = null) => {
        console.log(data, details);
      }}
      query={{
        key:'YOUR-API-KEY',
        language: 'en',
      }}
      fetchDetails={true}
      />
  </ParallaxScrollView>
);
}

const styles = StyleSheet.create({
titleContainer: {
  flexDirection: 'row',
  alignItems: 'center',
  gap: 8,
},
stepContainer: {
  gap: 8,
  marginBottom: 8,
},
reactLogo: {
  height: 178,
  width: 290,
  bottom: 0,
  left: 0,
  position: 'absolute',
},
});

Please remember to remove you google API key from the code you provide here

Additional context

  • Library Version: 2.5.7

  • React Native Version: 0.79.2

  • iOS

  • [ ]
    If you are using expo please indicate here:

  • I am using expo

Add any other context about the problem here, screenshots etc

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions