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

feat: added Expo support #1

Merged
merged 6 commits into from
May 13, 2024
Merged

feat: added Expo support #1

merged 6 commits into from
May 13, 2024

Conversation

narendracello
Copy link
Collaborator

@narendracello narendracello commented May 11, 2024

This PR adds support for Expo. One can install cello-react-native using Expo config plugins by adding the below to app.json

{
  "expo": {
    "plugins": ["@getcello/cello-react-native"]
  }
}

The plugin provides props to set environment. Every time you change the props or plugins, you'll need to rebuild (and prebuild) the native app. If no extra properties are added, defaults will be used.

  • env (string): Set to your desired environment, such as prod, sandbox. Optional. Defaults to prod.
{
  "expo": {
    "plugins": [
      [
        "@getcello/cello-react-native",
        {
          "env": "sandbox"
        }
      ]
    ]
  }
}

The Readme is also updated accordingly.

@narendracello narendracello merged commit a6f74ef into main May 13, 2024
5 checks passed
@narendracello narendracello deleted the expo-support branch May 13, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant