Unable to resolve module ‘AccessibilityInfo’, when trying to create release bundle

It seems like a bug in 0.56 related to dependencies. The “solution” is to find the correct combination of dependencies’ versions. We found a workaround by installing those versions EXACTLY: react-native >> 0.55.4 babel-core >> latest babel-loader >> latest babel-preset-react-native >> 4.0.0 So you have to run those commands in order: react-native init AwesomeProject cd … Read more

How to localize bundle display name in iPhone app?

Here’s some instructions: Create a new empty file called InfoPlist.strings Open up the Navigator (cmd-opt-0) and select the first pane Click the plus for a localization Xcode (4.3) goes a bit funny and deselects your file. It’s placed it into a localization folder (probably called en.lproj in the item’s original folder. Re-select it in the … Read more

Unable to load the EventMachine C extension; To use the pure-ruby reactor

I was encountering this error message on Windows 10 while trying to use Jekyll’s LiveReload feature. The other answers here did not solve the problem completely, or risked having the issue re-occur the next time bundle install is run. My solution (taken from this site) was to: Run this console command gem uninstall eventmachine and … Read more

How to Iterate through all Bundle objects

Could you save everything as String using the toString() method? Don’t know if primitive types are mapped to their Object equivalents (e.g. int to class Integer), but if they are, then you might be able to do something like this, instead of laboriously checking each possible class. for (String key : bundle.keySet()) { saveKeyValueInPrefs(key, bundle.get(key).toString()); … Read more

IOS: copy a file in documents folder

Copies txtFile from resource to document if not already present. NSFileManager *fileManager = [NSFileManager defaultManager]; NSError *error; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *txtPath = [documentsDirectory stringByAppendingPathComponent:@”txtFile.txt”]; if ([fileManager fileExistsAtPath:txtPath] == NO) { NSString *resourcePath = [[NSBundle mainBundle] pathForResource:@”txtFile” ofType:@”txt”]; [fileManager copyItemAtPath:resourcePath toPath:txtPath error:&error]; } If you want to … Read more

Android Unit Testing: Bundle/Parcelable

I’ve found this link showing how you can unit test a parcelable object: http://stuffikeepforgettinghowtodo.blogspot.nl/2009/02/unit-test-your-custom-parcelable.html You can actually skip the Bundle if you don’t really need to include it like zorch did his suggestion. You would then get something like this: public void testTestClassParcelable(){ TestClass test = new TestClass(); // Obtain a Parcel object and write … Read more

Adding Bundles to existing ASP.NET Webforms solution

Simple solution, I had some typing errors. In the Site.Master I missed the ‘s’ from the end of bundles. Making my Site.Master look like this. <head runat=”server”> <asp:PlaceHolder runat=”server”> <%: Scripts.Render(“~/bundles/GlobalHead”) %> <%: Styles.Render(“~/Content/Global”) %> </asp:PlaceHolder> </head> <body> <%: Scripts.Render(“~/bundles/Global”) %> </body>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)