ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

Manual Installation for windows on latest RN

Open RedZepplin opened this issue 4 years ago • 0 comments

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());
}

} `

RedZepplin avatar Feb 23 '21 06:02 RedZepplin