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

Manual Installation for windows on latest RN #200

Open
RedZepplin opened this issue Feb 23, 2021 · 0 comments
Open

Manual Installation for windows on latest RN #200

RedZepplin opened this issue Feb 23, 2021 · 0 comments

Comments

@RedZepplin
Copy link

This is probably a stupid question, and I apologize in advance for my own naivety,

Instructions I'm following
https://www.npmjs.com/package/react-native-localization#manual-installation-windows

I've been trying to do the manual installation for windows, but can't for the life of me get it right, managed to get through the first 8 steps without a hitch, but the last part:

Open MainPage.cs
Add the new ReactNativeLocalization.RNLocalizationPackage() to the Packages list in MainPage.cs

I can't seem to find MainPage.cs, the closest thing I can find is MainPage.cpp which I am assuming is a C++ variation of the same file. despite this I have tried everything I can think of including #include to add this to the packages list, please any form of guidance would be greatly appreciated

MainPage.cpp
`#include "pch.h"
#include "MainPage.h"
#if __has_include("MainPage.g.cpp")
#include "MainPage.g.cpp"
#endif

#include "App.h"

using namespace winrt;
using namespace Windows::UI::Xaml;

namespace winrt::FrappePOS::implementation
{
MainPage::MainPage()
{

    InitializeComponent();
    
    auto app = Application::Current().as<App>();
    ReactRootView().ReactNativeHost(app->Host());
}

}
`

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

No branches or pull requests

1 participant