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

Share button on author screen #350

Open
MatthewTurk247 opened this issue Aug 21, 2022 · 9 comments
Open

Share button on author screen #350

MatthewTurk247 opened this issue Aug 21, 2022 · 9 comments
Assignees

Comments

@MatthewTurk247
Copy link
Contributor

MatthewTurk247 commented Aug 21, 2022

  1. Open a command-line shell.
  2. Clone the project to your local machine with git clone https://github.com/TheStanfordDaily/stanforddaily-mobile.git -b dev and open the folder with your text editor of choice.
  3. Create a branch off dev called share-author.
  4. Navigate to App.js.
  5. For the Stack.Screen named "Author", add the following to its options object:
headerRight: () => (
   <TouchableOpacity style={{ paddingHorizontal: 16 }} onPress={() => onShare(AUTHOR_PAGE_URL_HERE, route.params.name)}>
     <Icon name="share-outline" width={24} height={24} fill={eva[theme]["text-basic-color"]} />
   </TouchableOpacity>
)

Remember to consult the WordPress API to find the proper author URL key. Reference detailHeaderOptions for the article screen as an example if you are having trouble with the rest of the implementation. Make sure to use the Share component that comes with React Native. It should already be imported.

@MatthewTurk247 MatthewTurk247 changed the title Share button on author page Share button on author screen Aug 21, 2022
@AditSaxena
Copy link

@MatthewTurk247
Hi
I would like to work on this issue.
Can you assign it to me ?

@MatthewTurk247
Copy link
Contributor Author

Sure thing! Just added you as an assignee.

@AditSaxena
Copy link

@MatthewTurk247
Hi,
I'm facing issues in cloning the project. Is there any Slack group you can add me to ?

@MatthewTurk247
Copy link
Contributor Author

Did you run git clone https://github.com/TheStanfordDaily/stanforddaily-mobile.git -b dev? You can also click the green dropdown button on the main repo page and then click the button that says "Download ZIP."

@AditSaxena
Copy link

I've done that. I am facing issues when I try to run the app on either iOS or android device. This error I'm getting after running 'expo start' command.
Screenshot_20221012-125621_Original

@MatthewTurk247
Copy link
Contributor Author

Oh, gotcha. That's my fault for writing in that way. Try going through App.js and replacing occurrences of the line if (Object.keys(firebaseConfig).length > 0) { with if (firebaseConfig.apiKey && Object.keys(firebaseConfig).length > 0) {.

@MatthewTurk247
Copy link
Contributor Author

So I went ahead and pushed an update to the dev branch. Now, it will suffice for you to type this command, which will update your branch: git pull origin dev.

@AditSaxena
Copy link

ok. will try and let you know.
Thanks.

@AditSaxena
Copy link

@MatthewTurk247 can we connect on slack or LinkedIn or any other platform? need to ask you a few doubts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants