Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Firebase Problem #7

Closed
victorfob opened this issue Mar 4, 2020 · 2 comments
Closed

Firebase Problem #7

victorfob opened this issue Mar 4, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@victorfob
Copy link

There is a possible way to use the app without Firebase? and in case that's is impossible, could you guys please provide credencials to it?

@leelandclay
Copy link

I haven't gone through all of the code to see if there will be other issues, but if you go to /src/components/navigation/RootStackNavigator.tsx and delete the useEffect function as well as change the return function to look like this:

return (
    <NavigationContainer>
      <Stack.Navigator
        initialRouteName="Main"
        screenOptions={{
          headerStyle: {
            backgroundColor: theme.background,
          },
          headerTitleStyle: { color: theme.font },
          headerTitle: '',
          headerBackTitle: '',
        }}
      >
        <Stack.Screen name="Main" component={Main} />
        <Stack.Screen name="WebView" component={WebView} />
      </Stack.Navigator>
    </NavigationContainer>
  );

that will change the navigation to go directly to the Main component so you can focus on just the RNIap component.

Like I said, I didn't go through all of the code...and I didn't run this locally (not on my dev system), so you may get other errors...but it should be easy to figure out what's missing and either fake it or remove the requirement.

@hyochan hyochan added the help wanted Extra attention is needed label Mar 7, 2020
@hyochan
Copy link
Owner

hyochan commented Mar 7, 2020

@victorfob Thanks for the issue and the interests although this is still under development. Firebase credentials should not be exposed and hence those can be easily generated by creating your free project.

Read how to add firebase project and add find below keys and replace it in .env followed by .env.sample we've provided. They are very simple!

var firebaseConfig = {
  apiKey: "api-key",
  authDomain: "project-id.firebaseapp.com",
  databaseURL: "https://project-id.firebaseio.com",
  projectId: "project-id",
  storageBucket: "project-id.appspot.com",
  messagingSenderId: "sender-id",
  appID: "app-id",
};

@hyochan hyochan closed this as completed Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants