stefalda / ReactNativeLocalization

Class to localize the ReactNative interface
MIT License
898 stars 123 forks source link

react-native-web support #204

Closed sdevansh96 closed 3 years ago

sdevansh96 commented 3 years ago

How to run this package in web if we are using react-native-web?

stefalda commented 3 years ago

Why don't you use the react-localization package?

https://github.com/stefalda/react-localization

sdevansh96 commented 3 years ago

Will use react-localization, thanks for the quick response.

quicksilverr commented 2 years ago

Just to add a point here - In your resolve alias of your web pack config -

config.resolve.alias = {
      'react-native': 'react-native-web',
      'react-native-linear-gradient': 'react-native-web-linear-gradient',
      'react-native-localization': 'react-localization'
    };
Parmar-Bansi commented 5 months ago

Just to add a point here - In your resolve alias of your web pack config -

config.resolve.alias = {
      'react-native': 'react-native-web',
      'react-native-linear-gradient': 'react-native-web-linear-gradient',
      'react-native-localization': 'react-localization'
    };

thank you..